sparkle-engine
sparkle-engine
PhysicsManager
Class PhysicsManager
Index
Constructors
constructor
Properties
engine
physics
Objects
Methods
add
collision
Detection
remove
reset
Constructors
constructor
new
Physics
Manager
(
game
)
:
PhysicsManager
物理管理,一般不会用这个类
Parameters
game
:
SparkleEngine
Returns
PhysicsManager
Properties
engine
engine
:
SparkleEngine
Private
physics
Objects
physics
Objects
:
Set
<
Collision
>
= ...
Methods
add
add
(
collision
)
:
void
添加一个物理碰撞体
Parameters
collision
:
Collision
Returns
void
collision
Detection
collision
Detection
(
collision
)
:
ICollisionResult
[]
检测一个物理体,返回与其碰撞到的结果(包含碰撞到的物体以及overlap)
Parameters
collision
:
Collision
Returns
ICollisionResult
[]
remove
remove
(
collision
)
:
void
移除一个物理碰撞体
Parameters
collision
:
Collision
Returns
void
reset
reset
(
)
:
void
重置(删除所有物理体)
Returns
void
Preparing search index...
The search index is not available
sparkle-engine
CONTENTS
Math
Color
MathUtils
Matrix
Path
Rect
Vector2
GameNode
Collision
Container
Drawable
Graphical
Sprite
Text
Timer
Transform2D
Texture
AltasTexture
BaseTexture
Texture
TextureManager
Input
InputManager
MouseManager
Physics
Collision
PhysicsManager
Audio
Audio
AudioManager
Others
DebuggerDrawType
GraphicalType
PRIMITIVE_MODE
ResourcesType
SCALE_MODE
TextAnchor
Animations
DataResources
EventEmitter
GLShader
Loader
ObjectPool
Renderer
Resources
ResourcesManager
Scene
SparkleEngine
TextManager
VertexArrayBuffer
AnimationsStore
AttributeInfo
IAnimationFrames
IAnimationOption
IAudioEvent
IBaseGraphicalOptions
ICircleOptions
ICollisionEvent
ICollisionOptions
ICollisionResult
ICompositorOptions
IContainerEvent
IContainerOptions
ICopyable
IDebuggerDraw
IDestoryable
IDrawLineOptions
IDrawOptions
IDrawPolygonOptions
IDrawableOptions
IEventAble
IInputEvents
IListened
ILoadAnimationOptions
ILoaderEvent
IMouseData
IMouseEvents
IPolygonOptions
IPoolable
IRectOptions
IRenderOptions
IResources
IResourcesManagerEvent
IResourcesStore
ISparkleEngineOption
ISpriteOptions
ITextOptions
ITimerEvents
ITimerOptions
ITransform2DOptions
PoolTypes
AttributesLocation
Constructor
IGraphicalOptions
Images
物理管理,一般不会用这个类