Exemplo n.º 1
0
        /// get the object's dynamic state this frame
        public override DynamicState GetState()
        {
            Vector2 position = physics.GetPosition();
            Vector2 velocity = physics.GetVelocity();

            return(new DynamicState(position, velocity));
        }
 protected override DynamicObjectInformation GetState()
 {
     return(new DynamicObjectInformation(
                block.GetPosition(), block.GetVelocity(), Time.time));
 }