Search
Preparing search index...
The search index is not available
nene-engine.ts
Options
All
Public
Public/Protected
All
Inherited
Menu
Globals
PhysicObjects
Class PhysicObjects
Hierarchy
PhysicObject
PhysicObjects
Index
Constructors
constructor
Properties
collide
Call
Back
phy
Body
view
Body
Accessors
angular
Velocity
position
quaternion
velocity
Methods
Add
Box
Add
Shape
FromJSON
Look
At
Look
AtBy
Numer
Orient
Orient
And
Rotate
Set
Collide
Callback
Sync
Update
Constructors
constructor
new
Physic
Objects
(
mass
:
number
, name
?:
string
)
:
PhysicObjects
Parameters
mass:
number
Default value
name:
string
= ""
Returns
PhysicObjects
Properties
collide
Call
Back
collide
Call
Back
:
function
Type declaration
(
data
:
CollideData
)
:
void
Parameters
data:
CollideData
Returns
void
phy
Body
phy
Body
:
Cannon.Body
view
Body
view
Body
:
THREE.Object3D
Accessors
angular
Velocity
get
angularVelocity
(
)
:
Cannon.Vec3
Returns
Cannon.Vec3
position
get
position
(
)
:
Cannon.Vec3
Returns
Cannon.Vec3
quaternion
get
quaternion
(
)
:
Cannon.Quaternion
Returns
Cannon.Quaternion
velocity
get
velocity
(
)
:
Cannon.Vec3
Returns
Cannon.Vec3
Methods
Add
Box
Add
Box
(
width
:
number
, height
:
number
, depth
:
number
, x
:
number
, y
:
number
, z
:
number
, addMesh
?:
boolean
, material
?:
THREE.Material
)
:
void
Parameters
width:
number
height:
number
depth:
number
x:
number
y:
number
z:
number
Default value
addMesh:
boolean
= false
Default value
material:
THREE.Material
= null
Returns
void
Add
Shape
FromJSON
Add
Shape
FromJSON
(
data
:
string
, mat
?:
THREE.Material
)
:
void
Parameters
data:
string
Default value
mat:
THREE.Material
= null
Returns
void
Look
At
Look
At
(
eyes
:
THREE.Vector3
, target
:
THREE.Vector3
)
:
void
Parameters
eyes:
THREE.Vector3
target:
THREE.Vector3
Returns
void
Look
AtBy
Numer
Look
AtBy
Numer
(
x
:
number
, y
:
number
, z
:
number
)
:
void
Parameters
x:
number
y:
number
z:
number
Returns
void
Orient
Orient
(
x
:
number
, y
:
number
, z
:
number
)
:
void
Parameters
x:
number
y:
number
z:
number
Returns
void
Orient
And
Rotate
Orient
And
Rotate
(
x
:
number
, y
:
number
, z
:
number
, angle
?:
number
)
:
void
Parameters
x:
number
y:
number
z:
number
Default value
angle:
number
= 0
Returns
void
Set
Collide
Callback
Set
Collide
Callback
(
callback
:
function
)
:
void
Parameters
callback:
function
(
collideData
:
CollideData
)
:
void
Parameters
collideData:
CollideData
Returns
void
Returns
void
Protected
Sync
Sync
(
)
:
void
Returns
void
Update
Update
(
)
:
void
Returns
void
Globals
Circle
Collide
Data
Core
Core
Option
Figure
Improved
Noise
Particles
Physic
Box
Physic
Object
Physic
Object
Attribute
Physic
Object
Box
Attribute
Physic
Object
Plane
Attribute
Physic
Object
Sphere
Attribute
Physic
Objects
constructor
collide
Call
Back
phy
Body
view
Body
angular
Velocity
position
quaternion
velocity
Add
Box
Add
Shape
FromJSON
Look
At
Look
AtBy
Numer
Orient
Orient
And
Rotate
Set
Collide
Callback
Sync
Update
Physic
Plane
Physic
Sphere
Physic
Unit
Point
Rectangle
Scene
Terrain
Tiled
Textured
Sprite
Unit
All
IsNot
Null
OrUndefined
Associative
Array
ToArray
Base64to
Blob
Boolean
ToString
Clamp
Coalescing
Each
Mesh
Null
Coalescing
Orient
Quaternion
Random
Random
Color
Start
Undef
Coalescing
collide
collide2
collide
Test
Generated using
TypeDoc