-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathcore_object3d.go
48 lines (44 loc) · 1.11 KB
/
core_object3d.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package three
import "github.com/gopherjs/gopherjs/js"
type Object3D interface {
ApplyMatrix(matrix *Matrix4)
Add(m Object3D)
ToJSON() interface{}
// Copy(source Object3D, recursive bool)
getInternalObject() *js.Object
}
// OnBeforeRender()
// OnAfterRender()
// ApplyMatrix(matrix float64)
// ApplyQuaternion(q Quaternion)
// SetRotationFromAxisAngle(axis Vector3, angle float64)
// SetRotationFromEuler(euler Euler)
// SetRotationFromMatrix(m Matrix4)
// SetRotationFromQuaternion(q Quaternion)
// RotateOnAxis()
// RotateX()
// RotateY()
// RotateZ()
// TranslateOnAxis()
// TranslateX()
// TranslateY()
// TranslateZ()
// LocalToWorld(vector Vector3)
// WorldToLocal()
// LookAt()
// Add(object Object3D)
// Remove(object Object3D)
// GetObjectById(id string)
// GetObjectByName(name string)
// GetObjectByProperty(name, value string)
// GetWorldPosition(optionalTarget Object3D)
// GetWorldQuaternion()
// GetWorldRotation()
// GetWorldScale()
// GetWorldDirection()
// Raycast()
// UpdateMatrix()
// UpdateMatrixWorld(force bool)
// ToJSON(meta interface{})
// Clone(recursive bool)
// Copy(source Object3D, recursive bool)