How can I obtain/change an Entities' texture coordinates?

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Spankenstein
Posts: 249
Joined: Wed Nov 17, 2010 1:49 pm

How can I obtain/change an Entities' texture coordinates?

Post by Spankenstein »

If I create a compound body and I wish to assign texture coordinates to it, is there a specific parameter to store the data other than using the .Tag parameter?
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: How can I obtain/change an Entities' texture coordinates?

Post by Norbo »

The physics engine itself doesn't know anything about texture coordinates (or graphics in general), so if you just wanted some place to store arbitrary information on an Entity, Tag would be it. I usually prefer to avoid attaching rendering data to entities when possible in favor of 'game entities' owning physics entities. That way, all the graphics and non-physics stuff can be a part of the 'game entity' just like the physics entity is, and you never have to blur the line between the physics and other systems.
Post Reply