Team Spartan Cookies & Milk Forums
applyForce issue - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: applyForce issue (/thread-577.html)



applyForce issue - LocInt - 08-11-2014

Hello there!

For some reason applyForce function is not working.

local Entity = EntLib.self()

local Forward = Entity:getForward()
Entity:applyForce(Forward)

or

Entity:applyForce(Vector(0,0,1))

I get nothing out of it.

and yes im using

Entity:enableGravity(false)


RE: applyForce issue - Person8880 - 08-11-2014

A force of magnitude 1 is nothing. You have to apply more force than that (usually dependent on mass).


RE: applyForce issue - LocInt - 08-11-2014

(08-11-2014, 12:09 PM)Person8880 Wrote: A force of magnitude 1 is nothing. You have to apply more force than that (usually dependent on mass).

I tried also * Entity:mass(). No response.


RE: applyForce issue - Iajret - 08-11-2014

Try to apply more force. *Ent:mass()*10 (or 100).


RE: applyForce issue - LocInt - 08-11-2014

(08-11-2014, 06:36 PM)Iajret Wrote: Try to apply more force. *Ent:mass()*10 (or 100).

Trust me I already tried with high forces...


RE: applyForce issue - Matovick - 08-11-2014

You have to have a higher vector to increase the force, not increase the objects mass.
Entity:applyForce(Vector(0,0,1000))


RE: applyForce issue - LocInt - 08-11-2014

(08-11-2014, 09:48 PM)Matovick Wrote: You have to have a higher vector to increase the force, not increase the objects mass.
Entity:applyForce(Vector(0,0,1000))
this is atleast how i remember it.

I have tried that also.


RE: applyForce issue - Blackhawk - 09-11-2014

I remember when applyForce was blocked for donators and below, is it possible that it still is?


RE: applyForce issue - TheOneAndOnlyTee - 09-11-2014

i know E2 hasn't got it blocked for members but not sure about SF, probably not though


RE: applyForce issue - LocInt - 10-11-2014

The issues seems to be fixed now.