how to change the position of an object
Page 1 of 1 • Share •
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.
_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com

sio2interactive- Posts: 1526
Join date: 2008-08-26
Age: 33
Location: Shanghai

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 ->
_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com

sio2interactive- Posts: 1526
Join date: 2008-08-26
Age: 33
Location: Shanghai

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-03-01
Similar topics» Anong sex position ang pinakamasarap?
» June 6-7: Pole Position
» Snake in striking position (Sign)
» Would like to find out the second amendment position of my local Representative plus
» Miami Dolphins 2011 Position Grades: Quarterback
» June 6-7: Pole Position
» Snake in striking position (Sign)
» Would like to find out the second amendment position of my local Representative plus
» Miami Dolphins 2011 Position Grades: Quarterback
Permissions in this forum:
You cannot reply to topics in this forum