This is used to compute the current state of a contact manifold.
Exemple #1
0
        /// <summary>
        /// Get the world manifold.
        /// </summary>
        public virtual void getWorldManifold(WorldManifold worldManifold)
        {
            Body bodyA = m_fixtureA.Body;
            Body bodyB = m_fixtureB.Body;
            Shape shapeA = m_fixtureA.Shape;
            Shape shapeB = m_fixtureB.Shape;

            worldManifold.initialize(m_manifold, bodyA.getTransform(), shapeA.m_radius, bodyB.getTransform(), shapeB.m_radius);
        }
Exemple #2
0
        /// <summary>
        /// Get the world manifold.
        /// </summary>
        public void GetWorldManifold(WorldManifold worldManifold)
        {
            Body bodyA = FixtureA.Body;
            Body bodyB = FixtureB.Body;
            Shape shapeA = FixtureA.Shape;
            Shape shapeB = FixtureB.Shape;

            worldManifold.Initialize(Manifold, bodyA.GetTransform(), shapeA.Radius, bodyB.GetTransform(), shapeB.Radius);
        }