Graidlyz
|
  |
| Joined: 25 Dec 2011 |
| Total Posts: 13357 |
|
| |
|
|
| 16 Feb 2016 08:06 AM |
Maybe use a BodyGyro to look at the same point:
http://wiki.roblox.com/index.php?title=API:Class/BodyGyro
|
|
|
| Report Abuse |
|
|
Graidlyz
|
  |
| Joined: 25 Dec 2011 |
| Total Posts: 13357 |
|
|
| 16 Feb 2016 08:07 AM |
I know I need to use BodyGyros, what I can't do is the "math" or whatever it is
|
|
|
| Report Abuse |
|
|
|
| 16 Feb 2016 08:10 AM |
It's pretty simple, the BodyGyro looks at the rotation property of its CFrame(It ignores the position property).
BodyGyro.CFrame = CFrame.new(Vector3.new(0, 0, 0), mouse.Hit.p)) --this would make it look at the position of your mouse, change mouse.Hit.p to where the velocity is aiming at
|
|
|
| Report Abuse |
|
|
|
| 16 Feb 2016 08:13 AM |
Try
part.CFrame = CFrame.new(part.Position, (part.Position + part.Velocity)) |
|
|
| Report Abuse |
|
|
Graidlyz
|
  |
| Joined: 25 Dec 2011 |
| Total Posts: 13357 |
|
|
| 16 Feb 2016 08:32 AM |
"the velocity is aiming at"
the velocity direction is a unit vector
mouse.Hit.p is a position
@128
doesn't work
|
|
|
| Report Abuse |
|
|
|
| 16 Feb 2016 09:56 PM |
| It does work I just tested it. |
|
|
| Report Abuse |
|
|
Graidlyz
|
  |
| Joined: 25 Dec 2011 |
| Total Posts: 13357 |
|
|
| 17 Feb 2016 04:05 AM |
Works, I did something wrong, ty.
|
|
|
| Report Abuse |
|
|