Changes between Version 3 and Version 4 of ~archive/WorldEntity
- Timestamp:
- Apr 15, 2017, 3:57:04 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
~archive/WorldEntity
v3 v4 2 2 [[ArchivePage]] 3 3 4 A !WorldEntity is an extension [wiki: archive/ParentNode ParentNode], that can be displayed, and interact in the wonderful Worlds of orxonox4 A !WorldEntity is an extension [wiki:ParentNode ParentNode], that can be displayed, and interact in the wonderful Worlds of orxonox 5 5 6 source: /trunk/src/world_entities/world_entity.h#HEAD [[br]]6 source:orxonox.OLD/trunk/src/world_entities/world_entity.h#HEAD [[br]] 7 7 __Dependecies__: 8 * [wiki: archive/ParentNode ParentNode]8 * [wiki:ParentNode ParentNode] 9 9 10 10 == usage == … … 25 25 '''Initailisation-Phase:''' 26 26 * __loadParams__: Loads Parameters on the !WorldEntity - level 27 * __loadModel__: loads a new Model onto the !WorldEntity (this is coppled with the [wiki: archive/ResourceManager ResourceManager], so you don't have to care about the pointer anymore)27 * __loadModel__: loads a new Model onto the !WorldEntity (this is coppled with the [wiki:ResourceManager ResourceManager], so you don't have to care about the pointer anymore) 28 28 * __buildObbTree__: If you want collisions to happen onto this !WorldEntity, then you have to call this function, to create a Collision-Cluster. This is normally called upon a call to loadModel, but maybe you want something more. 29 29 * __setVisibility__: Tells the ENGINE if this !WorldEntity must be drawn, or not … … 40 40 == Howto Create a new !WorldEntity == 41 41 If you want to create a new !WorldEntity, you first have to know the concept of 42 * ClassID, [wiki: archive/BaseObject BaseObject] (for nice integration into our project)43 * [wiki: archive/LoadParam LoadParam] / Factory (for automatic Loading)42 * ClassID, [wiki:BaseObject BaseObject] (for nice integration into our project) 43 * [wiki:LoadParam LoadParam] / Factory (for automatic Loading) 44 44 45 45 Then it would be a good idea to look at an other !WorldEntity, like Player/NPC/PowerUp.