Jump to content


Photo

Translate problem :/


  • Please log in to reply
1 reply to this topic

#1 szotyi41

szotyi41

    GMC Member

  • GMC Member
  • 16 posts

Posted 07 March 2012 - 02:30 PM

Posted Image

d3d_transform_set_identity();
d3d_transform_add_scaling(0.1,0.1,0.1);
d3d_transform_add_rotation_y(+90);

//d3d_transform_add_rotation_z(+10);

d3d_transform_add_rotation_z(direction+90);
d3d_transform_add_translation(x,y,0);
d3d_model_draw(model,130,10,-0.5,-1);

d3d_transform_set_identity();

Szóval így :)

Edited by szotyi41, 07 March 2012 - 02:31 PM.

  • 0

#2 hit172

hit172

    GMC Member

  • New Member
  • 189 posts
  • Version:GM8

Posted 07 March 2012 - 04:12 PM

d3d_transform_set_identity();

d3d_transform_add_scaling(0.1, 0.1, 0.1);

d3d_transform_add_rotation_y(90);



d3d_transform_add_translation(x, y, z); //where you want the model in relation to the player



d3d_transform_add_rotation_z(direction+90);

d3d_transform_add_translation(x, y, 0);

d3d_model_draw(model, 0, 0, 0, -1);



d3d_transform_set_identity();

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users