CollisionComponent
Engine/source/T3D/components/collision/collisionComponent.h
Public Types
MeshType { None = 0 Bounds = 1 CollisionMesh = 2 VisibleMesh = 3 }
Protected Types
_Anonymous_ { ColliderMask = Parent::NextFreeMask }
Private Types
Parent
Public Attributes
Protected Attributes
Public Functions
bool
buildPolyList(PolyListContext context, AbstractPolyList * polyList, const Box3F & box, const SphereF & sphere)
componentAddedToOwner(Component * comp)
componentRemovedFromOwner(Component * comp)
getBestCollision(Point3F upVector)
getBestCollisionAngle(VectorF upVector)
getCollisionAngle(S32 collisionIndex, Point3F upVector)
getCollisionNormal(S32 collisionIndex)
bool
Called after any property of the object is changed in the world editor.
ownerTransformSet(MatrixF * mat)
packUpdate(NetConnection * conn, U32 mask, BitStream * stream)
Instructs this object to pack its state for transfer over the network.
targetShapeChanged(RenderComponentInterface * instanceInterface)
unpackUpdate(NetConnection * conn, BitStream * stream)
Instructs this object to read state data previously packed with packUpdate.
Public Static Functions
Detailed Description
Public Types
MeshType
Enumerator
- None = 0
No mesh.
- Bounds = 1
Bounding box of the shape.
- CollisionMesh = 2
Specifically designated collision meshes.
- VisibleMesh = 3
Rendered mesh polygons.
Protected Types
@128
Enumerator
- ColliderMask = Parent::NextFreeMask
Private Types
typedef Component Parent
Public Attributes
PhysicsBody * mPhysicsRep
PhysicsWorld * mPhysicsWorld
Protected Attributes
StringTableEntry colisionMeshPrefix
bool mAnimated
Vector< S32 > mCollisionDetails
MeshType mCollisionType
MeshType mDecalType
Vector< S32 > mLOSDetails
MeshType mLOSType
PhysicsComponentInterface * mOwnerPhysicsInterface
RenderComponentInterface * mOwnerRenderInterface
Public Functions
CollisionComponent()
~CollisionComponent()
buildColShapes()
buildPolyList(PolyListContext context, AbstractPolyList * polyList, const Box3F & box, const SphereF & sphere)
Reimplemented from: CollisionInterface
castRay(const Point3F & start, const Point3F & end, RayInfo * info)
Reimplemented from: CastRayInterface
checkDependencies()
Reimplemented from: Component
componentAddedToOwner(Component * comp)
Reimplemented from: Component
componentRemovedFromOwner(Component * comp)
Reimplemented from: Component
DECLARE_CONOBJECT(CollisionComponent )
getBestCollision(Point3F upVector)
getBestCollisionAngle(VectorF upVector)
getCollisionAngle(S32 collisionIndex, Point3F upVector)
getCollisionCount()
getCollisionData()
Reimplemented from: CollisionInterface
getCollisionNormal(S32 collisionIndex)
getContactNormal()
hasContact()
inspectPostApply()
Reimplemented from: SimObject
onComponentAdd()
Reimplemented from: Component
onComponentRemove()
Reimplemented from: Component
ownerTransformSet(MatrixF * mat)
Reimplemented from: Component
packUpdate(NetConnection * conn, U32 mask, BitStream * stream)
Reimplemented from: Component
prepCollision()
processTick()
Reimplemented from: Component
targetShapeChanged(RenderComponentInterface * instanceInterface)
unpackUpdate(NetConnection * conn, BitStream * stream)
Reimplemented from: Component
updatePhysics()
