About Store Forum Documentation Contact



Post Reply 
How to program Mesh to be an Actor
Author Message
Antony Offline
Member

Post: #1
How to program Mesh to be an Actor
Hi,

How to create/convert Mesh to Actor using code? For example, I have Materials.tut and can see how they are created from Mesh, but they are not Actors. Alternatively, many tutorials have actors, but they are the simple shapes without Materials and used for physics (and I could not find any attached to or encapsulating a Mesh), and I cannot see how to attach mesh to the Actor.

I understand I can do this in editor by creating an object, but my meshes are created dynamically in code with Materials, and need physics (ray and grab).

Any help or guidance appreciated.
02-09-2011 11:42 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #2
RE: How to program Mesh to be an Actor
typically you always use simple shapes for actors, and just draw meshes according to actor matrixes.

for static meshbased actors (from triangles) you need to create physical body (PhysBody), create from mesh, then create actor from such physical body
02-10-2011 12:53 AM
Find all posts by this user Quote this message in a reply
Post Reply