|
| 04 Mar 2015 12:47 PM |
I'm using this:
http://www.roblox.com/Rope-Example-item?id=222174211
if you could tell me the best method, and what function I would put it in would be great
Get in the back, bend over AND TAKE YOUR GOD DAMN SOCKS OFF |
|
|
| Report Abuse |
|
|
| |
|
|
| 04 Mar 2015 01:11 PM |
"Get in the back, bend over AND TAKE YOUR GOD DAMN SOCKS OFF"
im leaving |
|
|
| Report Abuse |
|
|
|
| 04 Mar 2015 01:12 PM |
it was my siggy pls!!
I keep thinking, how can my feet smell if they don't have a nose? |
|
|
| Report Abuse |
|
|
|
| 04 Mar 2015 01:14 PM |
| I used FindPartsInRegion3, but that is probably a stupid way of doing it. |
|
|
| Report Abuse |
|
|
|
| 04 Mar 2015 01:15 PM |
I heard raycasting is a good way but I don't know what function to put it in and what point to change
I keep thinking, how can my feet smell if they don't have a nose? |
|
|
| Report Abuse |
|
|
|
| 04 Mar 2015 01:17 PM |
| Oh yeah! I used raycasting! That is pretty cool. Just raycast along the velocity it is taking, and see if it will collide. If it does, move it to the collision point and stop its velocity. |
|
|
| Report Abuse |
|
|
Alyte
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 10090 |
|
|
| 04 Mar 2015 01:18 PM |
| badfitz whats ur obsession with feet oh wait nvm i know its too innapropriate for these forums tho |
|
|
| Report Abuse |
|
|
|
| 04 Mar 2015 01:20 PM |
'Oh yeah! I used raycasting! That is pretty cool. Just raycast along the velocity it is taking, and see if it will collide. If it does, move it to the collision point and stop its velocity.'
yeah I know that, but I honestly don't know how to set it and what function (calculate? constrain? update?)
I keep thinking, how can my feet smell if they don't have a nose? |
|
|
| Report Abuse |
|
|
|
| 04 Mar 2015 01:28 PM |
so I currently have something like this
function Calculate(Point,DeltaTime,Prev_Delta) if not Point.Pinned then local ray = Ray.new(Point.Position, workspace.BasePlate.Position) local part, endPoint = workspace:FindPartOnRay(ray) Point.Acc_X = 0 Point.Acc_Y = Gravity Point.Acc_Z = 0 Point.Vel_X = Point.Position.X - Point.Prev_X Point.Vel_Y = Point.Position.Y - Point.Prev_Y Point.Vel_Z = Point.Position.Z - Point.Prev_Z Point.Next_X = Point.Position.X + Point.Vel_X * (DeltaTime/Prev_Delta) *0.85 + Point.Acc_X * DeltaTime^2 Point.Next_Y = Point.Position.Y + Point.Vel_Y * (DeltaTime/Prev_Delta) *0.85 + Point.Acc_Y * DeltaTime^2 Point.Next_Z = Point.Position.Z + Point.Vel_Z * (DeltaTime/Prev_Delta) *0.85 + Point.Acc_Z * DeltaTime^2 Point.Prev_X = Point.Position.X Point.Prev_Y = Point.Position.Y Point.Prev_Z = Point.Position.Z if part and not Point.Pinned then print((Point.Position - part.Position).magnitude) Point.Vel_Y = Point.Position.Y - Point.Prev_Y + (Point.Position - part.Position).magnitude end Point.Position = Vector3.new(Point.Next_X , Point.Next_Y - Point.Vel_Y , Point.Next_Z) else Point.Acc_X = 0 Point.Acc_Y = 0 Point.Acc_Z = 0 Point.Vel_X = 0 Point.Vel_Y = 0 Point.Vel_Z = 0 Point.Prev_X = Point.Position.X Point.Prev_Y = Point.Position.Y Point.Prev_Z = Point.Position.Z Point.Position = script.Parent.StartingPoint.Position --Attaches to a brick :D end --print(Point.Position) end
only thing I made here is the raycasting stuff.
any people care to help?
I keep thinking, how can my feet smell if they don't have a nose? |
|
|
| Report Abuse |
|
|