Universe.Physics.BulletSPlugin.SimMotionState.SimMotionState C# (CSharp) Method

SimMotionState() public method

public SimMotionState ( BSAPIXNA pWorld, uint id, BulletXNA.LinearMath.IndexedMatrix starTransform, object frameUpdates ) : System
pWorld BSAPIXNA
id uint
starTransform BulletXNA.LinearMath.IndexedMatrix
frameUpdates object
return System
        public SimMotionState(BSAPIXNA pWorld, uint id, IndexedMatrix starTransform, object frameUpdates)
        {
            IndexedQuaternion OrientationQuaterion = starTransform.GetRotation();
            m_properties = new EntityProperties()
            {
                ID = id,
                Position = new Vector3(starTransform._origin.X, starTransform._origin.Y, starTransform._origin.Z),
                Rotation =
                    new Quaternion(OrientationQuaterion.X, OrientationQuaterion.Y, OrientationQuaterion.Z,
                        OrientationQuaterion.W)
            };
            m_lastProperties = new EntityProperties()
            {
                ID = id,
                Position = new Vector3(starTransform._origin.X, starTransform._origin.Y, starTransform._origin.Z),
                Rotation =
                    new Quaternion(OrientationQuaterion.X, OrientationQuaterion.Y, OrientationQuaterion.Z,
                        OrientationQuaterion.W)
            };
            m_world = pWorld;
            m_xform = starTransform;
        }