Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: why the physics-system class help doc has disappears?  (Read 395 times)
nico2008
Community Member
*
Posts: 42


« on: July 27, 2011, 02:30:34 AM »

 why the physics-system class not in: http://www.truevision3d.com/tvdna/ ?
I remember I have seen it not long before.But now it has disappears.
TVPhysics.GetBodyAngularVelocity()
what is the bLocalSpace mean?
And I meet a problem,when I set:TVPhysics.SetBodyLinearVelocity(),actor would move in the scence,but his face angle would change in the same time..That troubled me.
I want to use TVPhysics.SetBodyLinearVelocity() to make actor move forward,but when the angle is changing,I cant get the right direction for moving..Help me.Thanks.
Logged
ZaPPZion
Moderator
Community Member
*****
Posts: 555


« Reply #1 on: July 27, 2011, 04:14:43 AM »

Ah, the link that you're using is for TV6.1 instead of for 6.5
Try this one instead:
http://wiki.truevision3d.com/tv3d65_doc/tv3d_v6.5_programmers_reference_manual
The bLocalSpace is for defining if you want to have the angular velocity in the local coordinate system (true) or the world system (false). Imagine having a cylinder tilted forward. If you rotate the cylinder around its axis, you can get the rotation around its axis by using true, then it'll return the angular velocity in the y (up) axis. If you'd specify the bLocalSpace as false, it'll have some angular velocity in both the x,y and z axis, since it's rotating around a tilted axis Smiley
Hope this helps you, if you need more explanation, please ask Smiley
Logged

Check out my website: www.bartkuipers.com
nico2008
Community Member
*
Posts: 42


« Reply #2 on: July 27, 2011, 06:44:13 PM »

Thank u very much ZaPPzion,I have understand it
and I have another a serious problem that:
I want to use TVPhysics.SetBodyLinearVelocity() to make actor move forward,But the angle would change in the same time.
And when the angle is changing,I cant get the right direction for moving..Help me.Thanks.
That is my code:
angle=TVP.GetBodyRotation(body).y
TVP.SetBodyPosition(body,x+10*Cos(angle),y,z+10*Sin(angle))
How to make the body move forward?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks