コード例 #1
0
        public PhysicalRotationConstraintComponent(
            [FromParent, RequireExisting] IPhysicalComponent physicalComponent)
        {
            _physicalComponent = physicalComponent;
            _lastUpdated = new Dictionary<RigidBody, bool>();

            Enabled = true;
        }
コード例 #2
0
        public PhysicalRotationConstraintComponent(
            [FromParent, RequireExisting] IPhysicalComponent physicalComponent)
        {
            _physicalComponent = physicalComponent;
            _lastUpdated       = new Dictionary <RigidBody, bool>();

            Enabled = true;
        }
コード例 #3
0
        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;
        }
コード例 #4
0
        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;
        }