BufferGeometry
Object3D
Raycaster
Camera
CubeCamera
PerspectiveCamera
OrthographicCamera
StereoCamera
Clock
Curve
CurvePath
Path
Shape
ShapePath
ArrowHelper
AxesHelper
BoxHelper
Box3Helper
CameraHelper
DirectionalLightHelper
GridHelper
PolarGridHelper
HemisphereLightHelper
PlaneHelper
PointLightHelper
SkeletonHelper
SpotLightHelper
Light
PointLight
RectAreaLight
SpotLight
DirectionalLight
HemisphereLight
LightShadow
PointLightShadow
AnimationLoader
AudioLoader
BufferGeometryLoader
CompressedTextureLoader
CubeTextureLoader
DataTextureLoader
FileLoader
ImageBitmapLoader
ImageLoader
Loader
LoaderUtils
MaterialLoader
ObjectLoader
TextureLoader
LoadingManager
Material
Box2
Box3
Color
Cylindrical
Euler
Frustum
Interpolant
Line3
MathUtils
Matrix3
Matrix4
Plane
Quaternion
AnimationAction
AnimationClip
AnimationMixer
AnimationObjectGroup
AnimationUtils
keyframeTrack
PropertyBinding
PropertyMixer
BooleanKeyframeTrack
QuaternionKeyframeTrack
StringKeyframeTrack
Audio
AudioAnalyser
AudioContext
AudioListener
PositionalAudio

Matrix4.makeRotationY()

Matrix4.makeRotationY()是three.js中Matrix4对象的一个方法,用于在Y轴上进行旋转操作。

语法

matrix.makeRotationY(theta)

参数

  • theta:旋转角度,单位为弧度。

示例

const matrix = new THREE.Matrix4();
matrix.makeRotationY(Math.PI / 2);
// 将对象绕Y轴旋转90度

描述

Matrix4.makeRotationY()将当前矩阵绕Y轴旋转一定角度,生成新的矩阵。

注意事项

  • 旋转角度应使用弧度制。
  • 旋转方向为顺时针方向,即旋转角度为正值时,物体顺时针旋转。

参考资料

Matrix4.makeRotationY() - three.js docs