move Z in tutorial06
4 posters
move Z in tutorial06
hi, just started working with SIO2 and very excited about it.
so far i have been playing with tutorial06 and have had some issues adding a z movement to vec2 start, i get struct vec2 has no member named 'z' and im not sure where i would add this member or how. any pointers would be great.
thank you
so far i have been playing with tutorial06 and have had some issues adding a z movement to vec2 start, i get struct vec2 has no member named 'z' and im not sure where i would add this member or how. any pointers would be great.
thank you
tylercaiden- Posts : 5
Join date : 2009-04-16
Re: move Z in tutorial06
not sure what you mean. i only see and have a vec2 in template 6.
tylercaiden- Posts : 5
Join date : 2009-04-16
Re: move Z in tutorial06
vec2 only got 2 variables(x and y)
vec3 got 3 variables(x, y and z)
vec4 got 4 variables(x, y, z and ?)
vec3 got 3 variables(x, y and z)
vec4 got 4 variables(x, y, z and ?)
oioioi- Posts : 136
Join date : 2008-12-02
Location : Norway
Re: move Z in tutorial06
If you want a vec3 example with sio2Rotate3D() then check tutorial09 line #260
Francescu- Posts : 136
Join date : 2009-03-18
Re: move Z in tutorial06
ah! makes sense now thank you guys for the help.
tylercaiden- Posts : 5
Join date : 2009-04-16
Re: move Z in tutorial06
so i am guessing renaming all my vec2 in template.mm to vec3 isn't an option? actually im not guessing lol.. i get the error "cannot convert 'vec3' to 'vec2' for argument '2' to 'void sio2FontPrint(SIO2font*,vec2*, const char*,...)"
edit: was able to resolve that but I am still seeing 2 errors left for "struct vec2" has no member named 'z' even though i have change vec2 start to vec3 start
edit: was able to resolve that but I am still seeing 2 errors left for "struct vec2" has no member named 'z' even though i have change vec2 start to vec3 start
tylercaiden- Posts : 5
Join date : 2009-04-16
Re: move Z in tutorial06
why do you want a z member in start? If I'm right start holds the x and y pos of a touch, and not for movement of the camera
oioioi- Posts : 136
Join date : 2008-12-02
Location : Norway
Re: move Z in tutorial06
thats what i have gathered... not i have switched over the temp 9 and what i am attempting to do is use the movement that is already there for the odject but also when its moved forward the object will move up or i guess have a positive gravity. i am trying to sorta take off like a plane.
tylercaiden- Posts : 5
Join date : 2009-04-16
Similar topics
» Tutorial06 Build question
» can't debug and run tutorial06 on device BAD_ERR_ACCESS
» 28 FPS with particle system added to Tutorial06?
» Camera falls straight through floor in tutorial06?
» move widget
» can't debug and run tutorial06 on device BAD_ERR_ACCESS
» 28 FPS with particle system added to Tutorial06?
» Camera falls straight through floor in tutorial06?
» move widget
Permissions in this forum:
You cannot reply to topics in this forum