C# Class Indiefreaks.Xna.Physics.BEPUCollisionMove

Base SunBurn ICollisionMove class.
Inheritance: ICollisionMove
Datei anzeigen Open project: Indiefreaks/igf

Public Methods

Method Description
ApplyObjectForce ( Microsoft.Xna.Framework.Vector3 objectforce ) : void

Applies force to the object. The total force is used to move the object during the next call to Begin().

ApplyObjectForce ( Microsoft.Xna.Framework.Vector3 objectposition, Microsoft.Xna.Framework.Vector3 objectforce ) : void

Applies force to the object. The total force is used to move the object during the next call to Update().

ApplyWorldForce ( Microsoft.Xna.Framework.Vector3 worldposition, Microsoft.Xna.Framework.Vector3 worldforce ) : void

Applies force to the object. The total force is used to move the object during the next call to Update().

ApplyWorldForce ( Microsoft.Xna.Framework.Vector3 worldforce, bool constantforce ) : void

Applies force to the object. The total force is used to move the object during the next call to Begin().

Begin ( ) : void

Applies eventual ParentObject collision information changes to the current ISpaceObject instance.

Disable ( ) : void
Enable ( ) : void
End ( ) : void

Applies the current ISpaceObject World matrix changes to the ParentObject.

Initialize ( ) : void

Initializes the current instance

OnRemovedFromManager ( IManagerService manager ) : void

Called when the parent object is removed from a manager.

OnSubmittedToManager ( IManagerService manager ) : void

Called when the parent object is submitted to a manager.

React ( CollisionPoint worldcollisionpoint ) : void

Calculates and applies the reaction force between the object and the collision surface contained in the CollisionPoint.

RemoveForces ( ) : void

Removes all accumulated forces acting on the object. This will halt the object movement, however future forces (such as gravity) can immediately begin acting on the object again.

Protected Methods

Method Description
BEPUCollisionMove ( ICollisionObject collisionObject ) : BEPUphysics

Creates a new instance

OnCollisionDetected ( Collidable sender, Collidable other, CollidablePairHandler pair ) : void

Raises the appropriate ParentObject collision events depending on its CollisionType value

Method Details

ApplyObjectForce() public abstract method

Applies force to the object. The total force is used to move the object during the next call to Begin().
public abstract ApplyObjectForce ( Microsoft.Xna.Framework.Vector3 objectforce ) : void
objectforce Microsoft.Xna.Framework.Vector3 Amount of object-space force to apply to the object.
return void

ApplyObjectForce() public abstract method

Applies force to the object. The total force is used to move the object during the next call to Update().
public abstract ApplyObjectForce ( Microsoft.Xna.Framework.Vector3 objectposition, Microsoft.Xna.Framework.Vector3 objectforce ) : void
objectposition Microsoft.Xna.Framework.Vector3 Object-space location the force is applied to the object. /// This allows off-center forces, which cause rotation.
objectforce Microsoft.Xna.Framework.Vector3 Amount of object-space force to apply to the object.
return void

ApplyWorldForce() public abstract method

Applies force to the object. The total force is used to move the object during the next call to Update().
public abstract ApplyWorldForce ( Microsoft.Xna.Framework.Vector3 worldposition, Microsoft.Xna.Framework.Vector3 worldforce ) : void
worldposition Microsoft.Xna.Framework.Vector3 World-space location the force is applied to the object. /// This allows off-center forces, which cause rotation.
worldforce Microsoft.Xna.Framework.Vector3 Amount of world-space force to apply to the object.
return void

ApplyWorldForce() public abstract method

Applies force to the object. The total force is used to move the object during the next call to Begin().
public abstract ApplyWorldForce ( Microsoft.Xna.Framework.Vector3 worldforce, bool constantforce ) : void
worldforce Microsoft.Xna.Framework.Vector3 Amount of world-space force to apply to the object.
constantforce bool Determines if the force is from a constant /// source such as gravity, wind, or similar (eg: applied by the caller /// every frame instead of a single time).
return void

BEPUCollisionMove() protected method

Creates a new instance
protected BEPUCollisionMove ( ICollisionObject collisionObject ) : BEPUphysics
collisionObject ICollisionObject The parent object this instance will be associataed with
return BEPUphysics

Begin() public abstract method

Applies eventual ParentObject collision information changes to the current ISpaceObject instance.
public abstract Begin ( ) : void
return void

Disable() public method

public Disable ( ) : void
return void

Enable() public method

public Enable ( ) : void
return void

End() public abstract method

Applies the current ISpaceObject World matrix changes to the ParentObject.
public abstract End ( ) : void
return void

Initialize() public method

Initializes the current instance
public Initialize ( ) : void
return void

OnCollisionDetected() protected method

Raises the appropriate ParentObject collision events depending on its CollisionType value
protected OnCollisionDetected ( Collidable sender, Collidable other, CollidablePairHandler pair ) : void
sender BEPUphysics.BroadPhaseEntries.Collidable The current ISpaceObject instance
other BEPUphysics.BroadPhaseEntries.Collidable The ISpaceObject instance which collided
pair BEPUphysics.NarrowPhaseSystems.Pairs.CollidablePairHandler
return void

OnRemovedFromManager() public method

Called when the parent object is removed from a manager.
public OnRemovedFromManager ( IManagerService manager ) : void
manager IManagerService
return void

OnSubmittedToManager() public method

Called when the parent object is submitted to a manager.
public OnSubmittedToManager ( IManagerService manager ) : void
manager IManagerService
return void

React() public method

Calculates and applies the reaction force between the object and the collision surface contained in the CollisionPoint.
public React ( CollisionPoint worldcollisionpoint ) : void
worldcollisionpoint CollisionPoint Contains information about the closest collision point to the collider.
return void

RemoveForces() public abstract method

Removes all accumulated forces acting on the object. This will halt the object movement, however future forces (such as gravity) can immediately begin acting on the object again.
public abstract RemoveForces ( ) : void
return void