protected PhysicsJoint(JointType jointType, PhysicsBody bodyA, PhysicsBody bodyB, object[] args) { JointType = jointType; BodyA = bodyA; BodyB = bodyB; //PhysicsJoint: 'args' presumably populate Properties Properties = new Dictionary<PropertyType, object>(); }
protected virtual void OnCollisionEnd(PhysicsBody other) { if (CollisionEnd != null) CollisionEnd(other); }
//PhysicsBody Collision begin and end protected virtual void OnCollisionBegin(PhysicsBody other) { if (CollisionBegin != null) CollisionBegin(other); }
private static void UpdatePositionAndOrientation(Entity3D entity, PhysicsBody physicsBody) { entity.Position = physicsBody.Position; entity.Orientation = physicsBody.GetOrientation(); }
public abstract PhysicsJoint CreateJoint(JointType jointType, PhysicsBody bodyA, PhysicsBody bodyB, object[] args);
protected abstract void RemoveBody(PhysicsBody body);
protected void AddBody(PhysicsBody body) { bodies.Add(body); }
public PhysicsBodyOrientationIsBrokenMakeSureAllValuesAreSet(PhysicsBody physicsBody) : base(physicsBody.ToString()) {}