MOEntity

(Difference between revisions)
Jump to: navigation, search
(getType)
Line 18: Line 18:
 
==API==
 
==API==
 
====getType====
 
====getType====
[...]
+
See [[MObject3d#getType|MObject3d::getType]].
 +
 
 
====setActive====
 
====setActive====
 
[...]
 
[...]

Revision as of 23:42, 21 October 2013

MOEntity is one of the most important objects. It is associated with a mesh and can be moved and rotated around the scene.

It can have physics, so it can collide with other objects.

An entity can be anything from a character, an item, a weapon, a room.

MOEntity is derived from MObject3d.

MOEntity uses MPhysicsProperties and MPhysicsConstraint which are defined in the MOEntity source code itself.


Contents

Source code

MOEntity.h

MOEntity.cpp


API

getType

See MObject3d::getType.

setActive

[...]

Invisible

setInvisible

[...]

isInvisible

[...]

Mesh

getMesh

[...]

setMeshRef

[...]

getMeshRef

[...]

Animation

changeAnimation

[...]

isAnimationOver

[...]

setAnimationSpeed

[...]

setCurrentFrame

[...]

getAnimationId

[...]

getAnimationSpeed

[...]

getCurrentFrame

[...]

Physics

deletePhysicsProperties

[...]

createPhysicsProperties

[...]

getPhysicsProperties

[...]

Bounding box

getBoundingBox

[...]

Update

update

[...]

Visibility

updateVisibility

[...]

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox