Inverting the gravity

Typically: "How do I... ", "How can I... " questions
Post Reply
mateo
Posts: 19
Joined: 20 Feb 2013, 16:37

Inverting the gravity

Post by mateo » 16 Jul 2013, 18:12

How can i invert the gravity vector in a scene? (-z instead of z)?
thanks

coppelia
Site Admin
Posts: 7024
Joined: 14 Dec 2012, 00:25

Re: Inverting the gravity

Post by coppelia » 16 Jul 2013, 21:09

Hello Mateo,

Try with simSetArrayParameter(sim_arrayparam_gravity,{0,0,9.81})

Cheers

mateo
Posts: 19
Joined: 20 Feb 2013, 16:37

Re: Inverting the gravity

Post by mateo » 17 Jul 2013, 09:51

coppelia wrote:Hello Mateo,

Try with simSetArrayParameter(sim_arrayparam_gravity,{0,0,9.81})

Cheers

thanks..but: where should i write or modify this command?
cheers
mateo

coppelia
Site Admin
Posts: 7024
Joined: 14 Dec 2012, 00:25

Re: Inverting the gravity

Post by coppelia » 17 Jul 2013, 10:11

You can directly (i.e. manually) modify that value in the dynamics dialog. Or you can do it inside of a program. In that case you have many different possibilities. But the easiest would be to attach a child script to an object.

Cheers

Post Reply