Page 1 of 1

Vertex.SetVelocity()

Posted: Fri Aug 16, 2013 1:23 am
by CG_Nema
using:

Code: Select all

for v in obj.getVertices():
	v.setVelocity( Vector.new(0.0,0.0,0.0) )
Has no effect. Am I doing something wrong?

EDIT:

I just tried obj.setForce() and it also has no effect.

Re: Vertex.SetVelocity()

Posted: Fri Aug 16, 2013 6:35 am
by tsn
Is your object set to "Active rigid body"? If not then these commands have no effect.

Re: Vertex.SetVelocity()

Posted: Fri Aug 16, 2013 7:13 am
by CG_Nema
tsn wrote:Is your object set to "Active rigid body"? If not then these commands have no effect.
Yes its an active rigid. It is falling, when it's position.y goes below 0.0, I apply setVelocity to the vertices or setForce on the object. Neither have any effect for me at the moment. Tried running it as StepsPre and StepsPost.

Re: Vertex.SetVelocity()

Posted: Fri Aug 16, 2013 9:02 am
by tsn
Ok. Could you please provide the scene for download? I'd like to take a look at it. Thanks.