CodeRecipe( );

one stop for all game coders..

Follow us on Twitter
Home >> Tutorials >> Game Physics >> Visualizing Rigid Bodies
Coderecipe Tutorials

Visualizing Rigid Bodies Print E-mail
User Rating: / 2
PoorBest 
Written by CR Team   
Saturday, 18 July 2009 07:24

With Director 11.5 one can visualize the created proxy using the rb.properties property of the rigid body.

Have a look at the help file for details on the same. The following code snippet will allow you to see the created proxy shaped in wireframe mode :).rbody

The rigidbody that you see as wireframe is just another mesh created using newmesh() function. 

    This should be used only to get those annoying physics issues sorted out.

    Using it in runtime may cause lower FPS rates. 

    The mesh being created from the rb.properties has to be repositioned to the models world position ( done using parent/child)

This will not only help understand rigid body proxy shapes better, but also allow one to tweak it for performance !

Have fun visualizing ;) !!

 Download visualize proxyShape
File Title:visualize proxyShape (Details)
File Type:ls
File Version:1.0
File Size:2.35 Kb
License:Coderecipe.com , All Rights Reserved, 2009. Read the Disclaimer: http://coderecipe.com/cr-disclaimer
File Author:
File HomePage:
Downloads:20
Rating: (0 Votes)
Your Vote: