User Tools

Site Tools


en:examples:physics:get_body_from_object

Getting the Body from an Object

[Player]
Graphic = PlayerGraphic
Body    = PlayerBody
 
[PlayerBody]
PartList = PlayerBodyPart 
 
[PlayerBodyPart]
Type  = box
Solid = true

orxOBJECT *playerObject = orxObject_CreateFromConfig("Player");
orxBODY *body = orxOBJECT_GET_STRUCTURE(playerObject, BODY);

en/examples/physics/get_body_from_object.txt · Last modified: 2018/07/14 16:03 (23 months ago) (external edit)