|
|
Re: Help! Relative rotation!
[Re: Xarthor]
#159382
10/07/07 12:07
10/07/07 12:07
|
Joined: Oct 2007
Posts: 116
sydan
OP
Member
|
OP
Member
Joined: Oct 2007
Posts: 116
|
How do they work in script?
For some reason, my ambition always seems to beat my ability.
|
|
|
Re: Help! Relative rotation!
[Re: sydan]
#159384
10/07/07 12:14
10/07/07 12:14
|
Joined: Jul 2002
Posts: 4,436 Germany, Luebeck
Xarthor
Expert
|
Expert
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
|
Did you even take a look at the site I linked to? Quote:
c_rotate(ENTITY* entity, ANGLE* angle, var mode)
entity in this case is a pointer to your player entity (space ship thing)
angle* is a vector which will be used for the 3 angle directions: pan,tilt,roll
var mode: this is where you put the "use_axisr"
And you put this into your player entity action. Example: Use mouse_force.y for rotating the tilt of the entity: Code:
action player_act { player = me; while(me) { c_rotate(my,vector(0,5*mouse_force.y*time_step,0),use_axisr); wait(1); } }
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|