Drag[en]gine Game Engine  1.0
deBasePhysicsCollider Class Reference

Physics module collider peer. More...

#include <deBasePhysicsCollider.h>

Public Member Functions

Constructors and Destructors
 deBasePhysicsCollider ()
 Create peer. More...
 
virtual ~deBasePhysicsCollider ()
 Clean up peer. More...
 
Notifications
virtual void PositionChanged ()
 Position changed. More...
 
virtual void OrientationChanged ()
 Orientation changed. More...
 
virtual void ScaleChanged ()
 Scale changed. More...
 
virtual void LinearVelocityChanged ()
 Linear velocity changed. More...
 
virtual void AngularVelocityChanged ()
 Angular velocity changed. More...
 
virtual void EnabledChanged ()
 Enabled changed. More...
 
virtual void GravityChanged ()
 Gravity changed. More...
 
virtual void PropertiesChanged ()
 Properties like mass changed. More...
 
virtual void ResponseTypeChanged ()
 Response type changed. More...
 
virtual void ForceFieldChanged ()
 Force field factor changed. More...
 
virtual void CollisionFilterChanged ()
 Collision filter changed. More...
 
virtual void IgnoreCollidersChanged ()
 Ignore colliders changed. More...
 
virtual void CollisionTestAdded (int index)
 Post physics collision test added. More...
 
virtual void CollisionTestChanged (int index)
 Post physics collision test changed. More...
 
virtual void CollisionTestEnabledChanged (int index)
 Post physics collision test enabled changed. More...
 
virtual void CollisionTestRemoved (int index)
 Post physics collision test removed. More...
 
virtual void AllCollisionTestsRemoved ()
 All post physics collision tests removed. More...
 
virtual void CollisionVolumeChanged ()
 Collision Volume changed. More...
 
virtual void RigChanged ()
 Rig changed. More...
 
virtual void ComponentChanged ()
 Component changed. More...
 
Bones
virtual void BonePositionChanged (int index)
 Bone position changed. More...
 
virtual void BoneOrientationChanged (int index)
 Bone orientation changed. More...
 
virtual void BoneLinearVelocityChanged (int index)
 Bone linear velocity changed. More...
 
virtual void BoneAngularVelocityChanged (int index)
 Bone angular velocity changed. More...
 
virtual void BonePropertiesChanged (int index)
 Bone properties changed. More...
 
virtual void BoneDynamicChanged (int index)
 Bone dynamic changed. More...
 
Force and Impuls
virtual void ApplyImpuls (const decVector &impuls)
 Apply impuls at the center mass point. More...
 
virtual void ApplyImpulsAt (const decVector &impuls, const decVector &position)
 Apply impuls relative to the collider position. More...
 
virtual void ApplyTorqueImpuls (const decVector &torqueImpuls)
 Apply torque impuls at the center mass point. More...
 
virtual void ApplyForce (const decVector &force)
 Apply force at the center mass point. More...
 
virtual void ApplyForceAt (const decVector &force, const decVector &position)
 Apply force relative to the collider position. More...
 
virtual void ApplyTorque (const decVector &torque)
 Apply torque force at the center mass point. More...
 
virtual void ApplyBoneImpuls (int bone, const decVector &impuls)
 Apply impuls at the center mass point of the given bone. More...
 
virtual void ApplyBoneImpulsAt (int bone, const decVector &impuls, const decVector &position)
 Apply impuls relative to the bone position. More...
 
virtual void ApplyBoneTorqueImpuls (int bone, const decVector &torqueImpuls)
 Apply torque impuls force at the center mass point of the given bone. More...
 
virtual void ApplyBoneForce (int bone, const decVector &force)
 Apply force at the center mass point of the given bone. More...
 
virtual void ApplyBoneForceAt (int bone, const decVector &force, const decVector &position)
 Apply force relative to the bone position. More...
 
virtual void ApplyBoneTorque (int bone, const decVector &torque)
 Apply torque force at the center mass point of the given bone. More...
 
Attachments
virtual void AttachmentAdded (int index, deColliderAttachment *attachment)
 Attachment added. More...
 
virtual void AttachmentChanged (int index, deColliderAttachment *attachment)
 Attachment changed. More...
 
virtual void AttachmentRemoved (int index, deColliderAttachment *attachment)
 Attachment removed. More...
 
virtual void AllAttachmentsRemoved ()
 All attachments removed. More...
 
virtual void AttachmentsForceUpdate ()
 Force update of all attachments. More...
 
Constraints
virtual void ConstraintAdded (int index, deColliderConstraint *constraint)
 Constraint added. More...
 
virtual void ConstraintChanged (int index, deColliderConstraint *constraint)
 Constraint changed. More...
 
virtual void ConstraintRemoved (int index, deColliderConstraint *constraint)
 Constraint removed. More...
 
virtual void AllConstraintsRemoved ()
 All constraints removed. More...
 
virtual void EnableBoneConstraint (int bone, int constraint, bool enable)
 Enable or disable a component or rigged collider bone constraint. More...
 
virtual void ReplaceBoneConstraint (int bone, int constraint, const deRigConstraint &replacement)
 Replace a component or rigged collider bone constraint. More...
 
Collision Detection
virtual bool PointInside (const decDVector &point)
 Test if a point is located inside the collider. More...
 
virtual void RayHits (const decDVector &rayOrigin, const decVector &rayDirection, deBaseScriptingCollider *listener)
 Test ray for collision with the collider. More...
 
virtual void ColliderHits (deCollider *collider, deBaseScriptingCollider *listener)
 Test collider for collision with collider. More...
 
virtual void ColliderMoveHits (deCollider *collider, const decVector &displacement, deBaseScriptingCollider *listener)
 Test moving collider for collision with collider. More...
 
virtual void ColliderRotateHits (deCollider *collider, const decVector &rotation, deBaseScriptingCollider *listener)
 Test rotating collider for collision with collider. More...
 
virtual void ColliderMoveRotateHits (deCollider *collider, const decVector &displacement, const decVector &rotation, deBaseScriptingCollider *listener)
 Test moving and rotating collider for collision with collider. More...
 

Detailed Description

Physics module collider peer.

Author
Pl├╝ss Roland
Version
1.0
Date
2015

Constructor & Destructor Documentation

◆ deBasePhysicsCollider()

deBasePhysicsCollider::deBasePhysicsCollider ( )

Create peer.

◆ ~deBasePhysicsCollider()

virtual deBasePhysicsCollider::~deBasePhysicsCollider ( )
virtual

Clean up peer.

Member Function Documentation

◆ AllAttachmentsRemoved()

virtual void deBasePhysicsCollider::AllAttachmentsRemoved ( )
virtual

All attachments removed.

◆ AllCollisionTestsRemoved()

virtual void deBasePhysicsCollider::AllCollisionTestsRemoved ( )
virtual

All post physics collision tests removed.

◆ AllConstraintsRemoved()

virtual void deBasePhysicsCollider::AllConstraintsRemoved ( )
virtual

All constraints removed.

◆ AngularVelocityChanged()

virtual void deBasePhysicsCollider::AngularVelocityChanged ( )
virtual

Angular velocity changed.

◆ ApplyBoneForce()

virtual void deBasePhysicsCollider::ApplyBoneForce ( int  bone,
const decVector force 
)
virtual

Apply force at the center mass point of the given bone.

◆ ApplyBoneForceAt()

virtual void deBasePhysicsCollider::ApplyBoneForceAt ( int  bone,
const decVector force,
const decVector position 
)
virtual

Apply force relative to the bone position.

◆ ApplyBoneImpuls()

virtual void deBasePhysicsCollider::ApplyBoneImpuls ( int  bone,
const decVector impuls 
)
virtual

Apply impuls at the center mass point of the given bone.

◆ ApplyBoneImpulsAt()

virtual void deBasePhysicsCollider::ApplyBoneImpulsAt ( int  bone,
const decVector impuls,
const decVector position 
)
virtual

Apply impuls relative to the bone position.

◆ ApplyBoneTorque()

virtual void deBasePhysicsCollider::ApplyBoneTorque ( int  bone,
const decVector torque 
)
virtual

Apply torque force at the center mass point of the given bone.

◆ ApplyBoneTorqueImpuls()

virtual void deBasePhysicsCollider::ApplyBoneTorqueImpuls ( int  bone,
const decVector torqueImpuls 
)
virtual

Apply torque impuls force at the center mass point of the given bone.

◆ ApplyForce()

virtual void deBasePhysicsCollider::ApplyForce ( const decVector force)
virtual

Apply force at the center mass point.

◆ ApplyForceAt()

virtual void deBasePhysicsCollider::ApplyForceAt ( const decVector force,
const decVector position 
)
virtual

Apply force relative to the collider position.

◆ ApplyImpuls()

virtual void deBasePhysicsCollider::ApplyImpuls ( const decVector impuls)
virtual

Apply impuls at the center mass point.

◆ ApplyImpulsAt()

virtual void deBasePhysicsCollider::ApplyImpulsAt ( const decVector impuls,
const decVector position 
)
virtual

Apply impuls relative to the collider position.

◆ ApplyTorque()

virtual void deBasePhysicsCollider::ApplyTorque ( const decVector torque)
virtual

Apply torque force at the center mass point.

◆ ApplyTorqueImpuls()

virtual void deBasePhysicsCollider::ApplyTorqueImpuls ( const decVector torqueImpuls)
virtual

Apply torque impuls at the center mass point.

◆ AttachmentAdded()

virtual void deBasePhysicsCollider::AttachmentAdded ( int  index,
deColliderAttachment attachment 
)
virtual

Attachment added.

◆ AttachmentChanged()

virtual void deBasePhysicsCollider::AttachmentChanged ( int  index,
deColliderAttachment attachment 
)
virtual

Attachment changed.

◆ AttachmentRemoved()

virtual void deBasePhysicsCollider::AttachmentRemoved ( int  index,
deColliderAttachment attachment 
)
virtual

Attachment removed.

◆ AttachmentsForceUpdate()

virtual void deBasePhysicsCollider::AttachmentsForceUpdate ( )
virtual

Force update of all attachments.

◆ BoneAngularVelocityChanged()

virtual void deBasePhysicsCollider::BoneAngularVelocityChanged ( int  index)
virtual

Bone angular velocity changed.

◆ BoneDynamicChanged()

virtual void deBasePhysicsCollider::BoneDynamicChanged ( int  index)
virtual

Bone dynamic changed.

◆ BoneLinearVelocityChanged()

virtual void deBasePhysicsCollider::BoneLinearVelocityChanged ( int  index)
virtual

Bone linear velocity changed.

◆ BoneOrientationChanged()

virtual void deBasePhysicsCollider::BoneOrientationChanged ( int  index)
virtual

Bone orientation changed.

◆ BonePositionChanged()

virtual void deBasePhysicsCollider::BonePositionChanged ( int  index)
virtual

Bone position changed.

◆ BonePropertiesChanged()

virtual void deBasePhysicsCollider::BonePropertiesChanged ( int  index)
virtual

Bone properties changed.

◆ ColliderHits()

virtual void deBasePhysicsCollider::ColliderHits ( deCollider collider,
deBaseScriptingCollider listener 
)
virtual

Test collider for collision with collider.

For each collision deBaseScriptingCollider::CollisionResponse() of the listener set in the tested collider is called. To stop testing set deCollisionInfo::SetStopTesting() to true.

Has to be overwritten by the physics system to provide this test. The default implementation does nothing at all.

◆ ColliderMoveHits()

virtual void deBasePhysicsCollider::ColliderMoveHits ( deCollider collider,
const decVector displacement,
deBaseScriptingCollider listener 
)
virtual

Test moving collider for collision with collider.

For each collision deBaseScriptingCollider::CollisionResponse() of the listener set in the tested collider is called. To stop testing set deCollisionInfo::SetStopTesting() to true.

Has to be overwritten by the physics system to provide this test. The default implementation does nothing at all.

◆ ColliderMoveRotateHits()

virtual void deBasePhysicsCollider::ColliderMoveRotateHits ( deCollider collider,
const decVector displacement,
const decVector rotation,
deBaseScriptingCollider listener 
)
virtual

Test moving and rotating collider for collision with collider.

For each collision deBaseScriptingCollider::CollisionResponse() of the listener set in the tested collider is called. To stop testing set deCollisionInfo::SetStopTesting() to true.

Has to be overwritten by the physics system to provide this test. The default implementation does nothing at all.

◆ ColliderRotateHits()

virtual void deBasePhysicsCollider::ColliderRotateHits ( deCollider collider,
const decVector rotation,
deBaseScriptingCollider listener 
)
virtual

Test rotating collider for collision with collider.

For each collision deBaseScriptingCollider::CollisionResponse() of the listener set in the tested collider is called. To stop testing set deCollisionInfo::SetStopTesting() to true.

Has to be overwritten by the physics system to provide this test. The default implementation does nothing at all.

◆ CollisionFilterChanged()

virtual void deBasePhysicsCollider::CollisionFilterChanged ( )
virtual

Collision filter changed.

◆ CollisionTestAdded()

virtual void deBasePhysicsCollider::CollisionTestAdded ( int  index)
virtual

Post physics collision test added.

◆ CollisionTestChanged()

virtual void deBasePhysicsCollider::CollisionTestChanged ( int  index)
virtual

Post physics collision test changed.

◆ CollisionTestEnabledChanged()

virtual void deBasePhysicsCollider::CollisionTestEnabledChanged ( int  index)
virtual

Post physics collision test enabled changed.

◆ CollisionTestRemoved()

virtual void deBasePhysicsCollider::CollisionTestRemoved ( int  index)
virtual

Post physics collision test removed.

◆ CollisionVolumeChanged()

virtual void deBasePhysicsCollider::CollisionVolumeChanged ( )
virtual

Collision Volume changed.

◆ ComponentChanged()

virtual void deBasePhysicsCollider::ComponentChanged ( )
virtual

Component changed.

◆ ConstraintAdded()

virtual void deBasePhysicsCollider::ConstraintAdded ( int  index,
deColliderConstraint constraint 
)
virtual

Constraint added.

◆ ConstraintChanged()

virtual void deBasePhysicsCollider::ConstraintChanged ( int  index,
deColliderConstraint constraint 
)
virtual

Constraint changed.

◆ ConstraintRemoved()

virtual void deBasePhysicsCollider::ConstraintRemoved ( int  index,
deColliderConstraint constraint 
)
virtual

Constraint removed.

◆ EnableBoneConstraint()

virtual void deBasePhysicsCollider::EnableBoneConstraint ( int  bone,
int  constraint,
bool  enable 
)
virtual

Enable or disable a component or rigged collider bone constraint.

◆ EnabledChanged()

virtual void deBasePhysicsCollider::EnabledChanged ( )
virtual

Enabled changed.

◆ ForceFieldChanged()

virtual void deBasePhysicsCollider::ForceFieldChanged ( )
virtual

Force field factor changed.

◆ GravityChanged()

virtual void deBasePhysicsCollider::GravityChanged ( )
virtual

Gravity changed.

◆ IgnoreCollidersChanged()

virtual void deBasePhysicsCollider::IgnoreCollidersChanged ( )
virtual

Ignore colliders changed.

◆ LinearVelocityChanged()

virtual void deBasePhysicsCollider::LinearVelocityChanged ( )
virtual

Linear velocity changed.

◆ OrientationChanged()

virtual void deBasePhysicsCollider::OrientationChanged ( )
virtual

Orientation changed.

◆ PointInside()

virtual bool deBasePhysicsCollider::PointInside ( const decDVector point)
virtual

Test if a point is located inside the collider.

◆ PositionChanged()

virtual void deBasePhysicsCollider::PositionChanged ( )
virtual

Position changed.

◆ PropertiesChanged()

virtual void deBasePhysicsCollider::PropertiesChanged ( )
virtual

Properties like mass changed.

◆ RayHits()

virtual void deBasePhysicsCollider::RayHits ( const decDVector rayOrigin,
const decVector rayDirection,
deBaseScriptingCollider listener 
)
virtual

Test ray for collision with the collider.

For each collision deBaseScriptingCollider::CollisionResponse() is called. To stop testing set deCollisionInfo::SetStopTesting() to true. The distance parameter in the collision response represents the actual distance to the ray origin along the ray direction.

Has to be overwritten by the physics system to provide this test. The default implementation does nothing at all.

◆ ReplaceBoneConstraint()

virtual void deBasePhysicsCollider::ReplaceBoneConstraint ( int  bone,
int  constraint,
const deRigConstraint replacement 
)
virtual

Replace a component or rigged collider bone constraint.

The provided rig constraint only serves as source to copy the new parameters. It has to be freed by the called afterwards.

◆ ResponseTypeChanged()

virtual void deBasePhysicsCollider::ResponseTypeChanged ( )
virtual

Response type changed.

◆ RigChanged()

virtual void deBasePhysicsCollider::RigChanged ( )
virtual

Rig changed.

◆ ScaleChanged()

virtual void deBasePhysicsCollider::ScaleChanged ( )
virtual

Scale changed.


The documentation for this class was generated from the following file: