ZQFMGB12
|
  |
| Joined: 07 Aug 2010 |
| Total Posts: 208 |
|
|
| 10 Jun 2014 09:32 PM |
Something isn't right with the following code:
while wait(0.03) do workspace.Part.BodyForce.force = Vector3.new(0,1000,0) * 25 end
The force property assignment is in a loop because it needs to be updated frequently (not shown in the code). The desired effect is that the unanchored Part is supposed to counter regular gravity. However, it doesn't happen, though if force is changed in the properties menu, it works. Does anybody know what's wrong? |
|
|
| Report Abuse |
|
|
ZQFMGB12
|
  |
| Joined: 07 Aug 2010 |
| Total Posts: 208 |
|
| |
|
jav2612
|
  |
| Joined: 14 Jun 2010 |
| Total Posts: 1189 |
|
|
| 10 Jun 2014 09:40 PM |
while true do wait() part = Workspace.Part part.BodyForce.force = Vector3.new(0, part:GetMass() * 196.25, 0) end
I'm pretty sure a part's mass * 196.25 will keep it up using bodyforce. |
|
|
| Report Abuse |
|
|
ZQFMGB12
|
  |
| Joined: 07 Aug 2010 |
| Total Posts: 208 |
|
|
| 10 Jun 2014 09:42 PM |
| nvm, fixed the problem, it was a weird assignment error somewhere else in the code |
|
|
| Report Abuse |
|
|