how to change the position of an object
4 posters
how to change the position of an object
Hi ,
I just started working in sio2 and struggling a lot. i am using 1.4.
i made a spherical object in lender, i used that sio2 in tutorial3 .my requirement needs to dynamically show that object at some specific point. i tried with everything and got no success like, _myObject->dim->x = 200; or myObject->_sio2Transformation->loc->x = 200; or
myObject->_sio2Transformation->pos->x = 200; or what ever but i dont know why that object is not changin a single step of it. how do we dynamically change the object. in blender i made it actor-> rigid body.I saw your tutorials but there is nothing more than blender tutorial and i am not able to understand whats going on in the code. is there any documentation for reading ?
Thanks
Narender.
I just started working in sio2 and struggling a lot. i am using 1.4.
i made a spherical object in lender, i used that sio2 in tutorial3 .my requirement needs to dynamically show that object at some specific point. i tried with everything and got no success like, _myObject->dim->x = 200; or myObject->_sio2Transformation->loc->x = 200; or
myObject->_sio2Transformation->pos->x = 200; or what ever but i dont know why that object is not changin a single step of it. how do we dynamically change the object. in blender i made it actor-> rigid body.I saw your tutorials but there is nothing more than blender tutorial and i am not able to understand whats going on in the code. is there any documentation for reading ?
Thanks
Narender.
narender.mudgal- Posts : 7
Join date : 2009-08-08
Re: how to change the position of an object
After changing the _SIO2transform->pos, call sio2TransformBindMatrix to recalculate the matrix.
Hi
Thanks,
i tried by doing this
myObject->_SIO2transform->pos->x += 0.5;
sio2TransformBindMatrix( myObject->_SIO2transform );
and getting this error
_sio2Transform struct have no memeber pos.
Thanks
Naren
i tried by doing this
myObject->_SIO2transform->pos->x += 0.5;
sio2TransformBindMatrix( myObject->_SIO2transform );
and getting this error
_sio2Transform struct have no memeber pos.
Thanks
Naren
narender.mudgal- Posts : 7
Join date : 2009-08-08
Re: how to change the position of an object
_SIO2transform->loc sorry...
(you could have figure it out yourself when putting the -> )
(you could have figure it out yourself when putting the -> )
Hi
Thanks... but i tried using that and i dont understand what happens...
can you tell me like how do i give the values to the x,y,z cordinates?
in what way they accept values?
Thanks a lot.
can you tell me like how do i give the values to the x,y,z cordinates?
in what way they accept values?
Thanks a lot.
narender.mudgal- Posts : 7
Join date : 2009-08-08
Re: how to change the position of an object
You should check tutorial09 - there is code (logic) to move a 3rd person player and the camera. Tutorial09 also has a video tutorial.
Francescu- Posts : 136
Join date : 2009-03-18
Re: how to change the position of an object
How about tutorial 02, which demonstrates the basics, then go from there ;^)
goldfrapp0x0309- Posts : 43
Join date : 2009-02-28
Similar topics
» Randomly change one's position or what?
» Resetting object position
» Emitter position
» sio2UnProject change in 1.4?
» SIO2widget change in 1.4?
» Resetting object position
» Emitter position
» sio2UnProject change in 1.4?
» SIO2widget change in 1.4?
Permissions in this forum:
You cannot reply to topics in this forum