its E:applyAngForce(A) so you need to use an angle
so its
orCode:Angles=ang(P + ($P * 5),R + ($R * 5),Y + ($Y * 5)) Prop:applyAngForce(Angle)
but im not sure if this one workCode:Prop:applyAngForce(Angle+($Angle*5))
anyone know whats wrong with this
Code:@outputs P R Y @persist Prop:entity Angles:angle interval(1) Prop = entity():isWeldedTo() Angles = Prop:angles() P = Angles:pitch() R = Angles:roll() Y = Angles:yaw() Prop:applyAngForce(P + ($P * 5)) Prop:applyAngForce(R + ($R * 5)) Prop:applyAngForce(Y + ($Y * 5)) #it gives me the error: No such function: entity:applyAngForce(number) #at line 9, char 6
its E:applyAngForce(A) so you need to use an angle
so its
orCode:Angles=ang(P + ($P * 5),R + ($R * 5),Y + ($Y * 5)) Prop:applyAngForce(Angle)
but im not sure if this one workCode:Prop:applyAngForce(Angle+($Angle*5))
VIVE LE QUEBEC
sorry if I write some non-existent words
You could simplify it down a lot.Code:@outputs @persist Prop:entity Angles:angle interval(10) Prop = entity():isWeldedTo() Angles = Prop:angles() Prop:applyAngForce(Angles + ($Angles * 5))
this is going to be for a gyro cannon so technically in the end ill be adding the elevation of which the user is looking at and the bearing also so how do i specify in
Prop:applyAngForce(Angles + ($Angles * 5))
which angle that is going to be ergo i need it to be Pitch + Pitch + elevation in the end (shortened obviously)
ok so with this one the plate just kinda flips and spazzes the main goal here is to make it so the pitch roll and yaw stay at 0 using applyAngleforce
how do i make it so it stays stableCode:@outputs P R Y @persist Prop:entity Angles:angle interval(1) Prop = entity():isWeldedTo() Angles = Prop:angles() P = Angles:pitch() R = Angles:roll() Y = Angles:yaw() Angles=ang(P + ($P * 5),R + ($R * 5),Y + ($Y * 5)) Prop:applyAngForce(Angles) #the plate just flips and spazzes
also in this line that you told me taz doh
Angles=ang(P + ($P * 5),R + ($R * 5),Y + ($Y * 5))
what does ang mean, is that normalization?
Last edited by eduardo; 03-22-2009 at 12:41 PM. Reason: whut whut in teh butt


o its just something im making with fraps itll be a dual between two of my bots but i need a gun for it
Bookmarks