Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
3

How do I use the BodyObjects effectively?

Asked by
TomsGames 225 Moderation Voter
10 years ago

Alright so I have a model car, which 'body' objects am I required to use to get the thing moving?

It needs to move forward constantly and swerve side to side as buttons are pushed accordingly, does that mean it needs an angularbodyvelocity thing?

Also do 'body' objects even work for whole models?

Thanks!

0
Try to keep questions professional and avoid cursing. Unclear 1776 — 10y

1 answer

Log in to vote
1
Answered by
Merely 2122 Moderation Voter Community Moderator
10 years ago

BodyAngularVelocity tries to make the object spin.

What you want is a BodyGyro to control the direction the car is facing, and a BodyVelocity or BodyForce to push the car in that direction.

The wiki does a good job of explaining each Body object and how to use it: BodyForce BodyVelocity BodyGyro

Body objects need to be placed inside a part in order for them to exert force. Placing them inside a model won't work.

The really old car tools use body objects for movement, so looking at the source of one of those may be a help.

Ad

Answer this question