logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

s3d_translate - move object to absolute position

Author

SimonWunderlich
           Author of s3d

s3d                                                                                             S3D_TRANSLATE(3)

Description

       Move the object to some position in space. when you create an object, it's always located at 0.0 , 0.0,
       0.0.

           Warning

           Translation is absolute, not relative!

            s3d_translate(object, 2, 0, 0);
            s3d_translate(object, 4, 0, 0);
            // object will end up at 4,0,0 and not 6,0,0!!

Name

       s3d_translate - move object to absolute position

Synopsis

#include<s3d.h>ints3d_translate(intobject,floatx,floaty,floatz);

See Also