57 PhysicsConstraint(
const PhysicsConstraint & constraint);
86 unsigned int m_shapeId;
87 unsigned int m_collisionObjectId;
94 float m_linearDamping;
95 float m_angularDamping;
96 float m_angularFactor;
104 void deleteConstraint(
void);
117 inline void setShapeId(
unsigned int shapeId){ m_shapeId = shapeId; }
154 inline void setGhost(
bool ghost){ m_ghost = ghost; }
177 inline void setMass(
float mass){ m_mass = mass; }
289 unsigned int m_animationId;
291 float m_animationSpeed;
292 float m_currentFrame;
301 bool m_hasTransparency;
305 unsigned int m_numMaterials;
363 bool isColliding(
OEntity* entity);
387 virtual void setActive(
bool active);
415 void setMeshRef(
MeshRef *meshRef);
429 void changeAnimation(
unsigned int animationId);
435 bool isAnimationOver(
void);
443 m_animationSpeed = animationSpeed;
452 m_currentFrame = currentFrame;
477 void deletePhysicsProperties(
void);
491 return m_physicsProperties;
513 virtual void update(
void);
514 virtual void updateVisibility(
OCamera *camera);
float getCurrentFrame(void)
Returns the animation current frame in the currently running animation.
Definition: OEntity.h:472
void setCollisionShape(COLLISION_SHAPE_TYPE collisionShape)
Changes the collision shape used for collision detection.
Definition: OEntity.h:141
bool hasWireframe()
Checks if the entity has the wireframe mode enabled.
Definition: OEntity.h:325
The Scene class represents a scene in a Maratis level.
Definition: Scene.h:48
float getRestitution(void)
Retrieves the current restitution value.
Definition: OEntity.h:208
COLLISION_SHAPE_TYPE getCollisionShape(void)
Retrieves the current collision shape that is used for collision detection.
Definition: OEntity.h:147
Vector3 lowerAngularLimit
Definition: OEntity.h:66
float getAngularDamping(void)
Retrieves the current angular damping value.
Definition: OEntity.h:232
Vector3 upperLinearLimit
Definition: OEntity.h:65
bool hasTransparency()
Checks if the entity has any transparent material.
Definition: OEntity.h:337
bool hasShadow()
Checks if the OEntity has a shadow.
Definition: OEntity.h:505
void setFriction(float friction)
Changes the friction coefficient used for calculations.
Definition: OEntity.h:190
void setInvisible(bool invisible)
Changes if the OEntity is invisible or not.
Definition: OEntity.h:396
bool disableParentCollision
Definition: OEntity.h:68
Uses the bounding sphere for collision detection.
Definition: OEntity.h:41
Generate a capsule around the object and uses that for collision detection.
Definition: OEntity.h:45
float getMass(void)
Retrieves the mass of the object.
Definition: OEntity.h:184
Generates a convex hull around the object for collision detection.
Definition: OEntity.h:49
Vector3 lowerLinearLimit
Definition: OEntity.h:64
bool isInvisible(void)
Checks if the OEntity is invisible.
Definition: OEntity.h:402
float getFriction(void)
Retrieves the current friction value.
Definition: OEntity.h:196
unsigned int getShapeId(void)
Retrieves the current physics ID.
Definition: OEntity.h:123
void setCurrentFrame(float currentFrame)
Changes the current frame in the current animation.
Definition: OEntity.h:450
The Material class contains the implementation of a material used by 3D meshes for rendering differen...
Definition: Material.h:118
Implements a framework for string manipulation that operates directly on C strings.
Definition: NeoString.h:35
MeshRef * getMeshRef(void)
Returns the MeshRef of the OEntity.
Definition: OEntity.h:422
float getAngularFactor(void)
Retrieves the current angular factor value.
Definition: OEntity.h:244
Box3d * getBoundingBox(void)
Returns the bounding box.
Definition: OEntity.h:499
void setLinearFactor(const Vector3 &linearFactor)
Changes the linear factor coefficient used for calculations.
Definition: OEntity.h:250
bool isGhost(void)
Checks if the given object is a physical "ghost".
Definition: OEntity.h:166
void enableWireframe(bool v)
Enables/Disable the wireframe of the entity.
Definition: OEntity.h:331
virtual int getType(void)
Returns the type of the object.
Definition: OEntity.h:386
float getLinearDamping(void)
Retrieves the current linear damping value.
Definition: OEntity.h:220
unsigned int getCollisionObjectId(void)
Retrieves the current collision object ID that is used by the physics context.
Definition: OEntity.h:135
The PhysicsProperties class contains all physical properties an object can possibly possess...
Definition: OEntity.h:74
unsigned int parentObjectId
Definition: OEntity.h:60
bool isOccluder()
Checks if the OEntity is an occluder.
Definition: OEntity.h:384
Uses the bounding box for collision detection.
Definition: OEntity.h:39
Uses a cylinder that surrounds the object for collision detection.
Definition: OEntity.h:47
The Object3d class represents a general object in a 3D scene.
Definition: Object3d.h:43
void setShapeId(unsigned int shapeId)
Changes the physics shape ID that is given out by the physics context.
Definition: OEntity.h:117
Vector3 * getLinearFactor(void)
Retrieves the current linear factor value.
Definition: OEntity.h:256
PhysicsProperties * getPhysicsProperties(void)
Returns the physics properties object.
Definition: OEntity.h:489
Represents a 3D mesh in the scene.
Definition: OEntity.h:270
Uses a cone that completely surrounds the object for collision detection.
Definition: OEntity.h:43
void setGhost(bool ghost)
Sets the ghost property to the given value.
Definition: OEntity.h:154
void setAngularFactor(float angularFactor)
Changes the angular factor coefficient used for calculations.
Definition: OEntity.h:238
void enableOccluder(bool value)
Sets if this object is a occluder or not.
Definition: OEntity.h:378
PhysicsConstraint * getConstraint(void)
Retrieves a pointer to the physics constraint object.
Definition: OEntity.h:111
size_t getMaterialsNumber()
Returns the number of materials attached to this entity.
Definition: OEntity.h:319
String parentName
Definition: OEntity.h:62
void setRestitution(float restitution)
Changes the restitution coefficient used for calculations.
Definition: OEntity.h:202
unsigned int constraintId
Definition: OEntity.h:59
The Mesh class contains the implementation of a generic (i.e. file format agnostic) 3D mesh with supp...
Definition: Mesh.h:241
void setMass(float mass)
Changes the mass.
Definition: OEntity.h:177
void enableShadow(bool shadow)
Enables or disables shadows for the OEntity.
Definition: OEntity.h:511
void setAngularDamping(float angularDamping)
Changes the angular damping coefficient used for calculations.
Definition: OEntity.h:226
void setLinearDamping(float linearDamping)
Changes the linear damping coefficient used for calculations.
Definition: OEntity.h:214
float getAnimationSpeed(void)
Returns the animation speed of the currently running animation.
Definition: OEntity.h:465
void setCollisionObjectId(unsigned int collisionObjectId)
Changes the collision object ID used by the physics context.
Definition: OEntity.h:129
void setAnimationSpeed(float animationSpeed)
Changes the animation speed.
Definition: OEntity.h:441
Material * getMaterial(size_t idx=0)
Retrieves the material with the given index.
Definition: OEntity.h:313
unsigned int getAnimationId(void)
Returns the animation ID of the currently running animation.
Definition: OEntity.h:459
COLLISION_SHAPE_TYPE
Defines various types of collision shapes used for collision detection.
Definition: OEntity.h:36
Vector3 upperAngularLimit
Definition: OEntity.h:67
Definition: NeoEngine.h:48
Vector3 pivot
Definition: OEntity.h:63
Uses the triangle mesh directly for collision detection.
Definition: OEntity.h:51