generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: BodyAngularVelocity

Previous Thread :: Next Thread 
ausmel105 is not online. ausmel105
Joined: 05 Oct 2010
Total Posts: 251
04 Jul 2015 05:35 AM
Hi all,

Today I am attempting to steer a vehicle using body angular velocity at the rear axle, however my efforts are proving unsuccessful as the rear wheel also powers the vehicle's movement forward.

I have drawn a diagram for ease of understanding, red = wheels: https://twitter.com/ausmelRBLX/status/617044695038959616

I understand the the y axis would rotate the vehicle in the desired manner, so this is what the relevant code reads so far:

local dir = seat.CFrame.lookVector
v.BAV.angularvelocity = dir * newThrottle
if v:FindFirstChild("Rear") then
v.BAV.angularvelocity = v.BAV.angularvelocity + Vector3.new(0, steerValue, 0)
end

--main loop which is incorporated into a larger function, I have just pasted the relevant lines.

if seat.Steer == 1 then
steerValue = -0.5
elseif seat.Steer == -1 then
steerValue = 0.5
else
steerValue = 0
end

What could I do to achieve my desired effect, my current effort obviously isn't working. Any advice or suggestions are appreciated.
Report Abuse
ausmel105 is not online. ausmel105
Joined: 05 Oct 2010
Total Posts: 251
04 Jul 2015 09:58 AM
bump
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image