Documentation
¶
Index ¶
- type Collision
- type CollisionResolution
- type Object
- func (o *Object) Center() space.Vec2F
- func (o *Object) Collide(move space.Vec2F, tags ...string) *Collision
- func (o *Object) CollideWith(other *Object, move space.Vec2F) *space.Vec2F
- func (o *Object) ContainsPoint(point space.Vec2F) bool
- func (o *Object) Intercepts(other *Object) bool
- func (o *Object) Move(move space.Vec2F)
- func (o *Object) Position() space.Vec2F
- func (o *Object) SetPosition(pos space.Vec2F)
- func (o *Object) Size() space.Vec2F
- func (o *Object) StaticCollisionWith(other *Object) *space.Vec2F
- type World
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collision ¶
type Collision struct {
Resolutions []CollisionResolution
}
type CollisionResolution ¶
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
func (*Object) Collide ¶
Collide returns the collision if the object collided with the other objects
func (*Object) CollideWith ¶
CollideWith returns a delta vector if the object collided with the other object
func (*Object) ContainsPoint ¶
ContainsPoint returns true if the object contains the point
func (*Object) Intercepts ¶
Intercepts returns true if the object intercepts the other object
func (*Object) SetPosition ¶
Click to show internal directories.
Click to hide internal directories.