Creating a new Entity Object

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
emmo30
Posts: 9
Joined: Sat Dec 10, 2011 3:51 pm

Creating a new Entity Object

Post 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
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Creating a new Entity Object

Post 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.
emmo30
Posts: 9
Joined: Sat Dec 10, 2011 3:51 pm

Re: Creating a new Entity Object

Post by emmo30 »

Very Thanks for this sample it's too cool ;-)
Post Reply