Page 1 of 1

Creating a new Entity Object

Posted: Sun Dec 11, 2011 8:52 pm
by emmo30
Hi, Can u help me for creation a new Entity object,
I see in API all constructor method, i tried all constructor but i don't know,
i can't instancy a new Entity(EntityCollidable) or new Entity(EntityShape).
when i try

Code: Select all

Entity myCharacter =  new Entity(new new EntityCollidable(???))); 
I not have any reply of this class...
i have same result for EntityShape...
Thanks for help, Emre

Re: Creating a new Entity Object

Posted: Sun Dec 11, 2011 10:30 pm
by Norbo
I would recommend checking out the BEPUphysicsDemos samples in the main source download and the Getting Started Documentation and demo.

The EntityConstructionDemo.cs in the BEPUphysicsDemos shows a variety of ways you can build a variety of entity types.

Generally, it's easiest to start with what are called the 'prefab' entity types like Box, Sphere, Cylinder, and so on. These are easy to make and you don't have to worry about making collision shapes or collidables. They are used all over the BEPUphysicsDemos.

Re: Creating a new Entity Object

Posted: Sun Dec 11, 2011 10:53 pm
by emmo30
Very Thanks for this sample it's too cool ;-)