Protogame.FirstPersonControllerPhysicsComponent.FirstPersonControllerPhysicsComponent C# (CSharp) Méthode

FirstPersonControllerPhysicsComponent() public méthode

public FirstPersonControllerPhysicsComponent ( IPhysicsEngine physicsEngine, IDebugRenderer debugRenderer, [ physicalComponent ) : System
physicsEngine IPhysicsEngine
debugRenderer IDebugRenderer
physicalComponent [
Résultat System
        public FirstPersonControllerPhysicsComponent(
            IPhysicsEngine physicsEngine,
            IDebugRenderer debugRenderer,
            [FromParent, RequireExisting] IPhysicalComponent physicalComponent)
        {
            _physicsEngine = physicsEngine;
            _debugRenderer = debugRenderer;
            _physicalComponent = physicalComponent;

            TargetVelocity = Vector3.Zero;
            TryJump = false;
            JumpVelocity = 0.5f;
            Stiffness = 0.02f;

            Enabled = true;
        }