three.js - Rotate camera based on angle -
i rotate object on angle along y axis. based on reply how rotate three.js vector3 around axis? suppose updated vector.
my code :
var vec = new three.vector3( 0,0,0 ); var axis = new three.vector3( 0,1,0 ); var angle = math.pi / 2; vec.applyaxisangle( axis, angle );
i'm using r67 , returns me 0,0,0. i've tried r69 , returns me same. i'm not quiet ready move r69. guys tell me please how same thing using r67. thanks.
your rotating vector (0, 0, 0)
center , whatever angle utilize rotate center around axis (0, 0, 0)
. imagine doing simple 2d rotation. after all, rotation around y axis
can viewed 2d rotation in x-z
plane.
try other values vec
variable, illustration (1, 0, 0)
or (0, 0, 1)
, see results
three.js
No comments:
Post a Comment