Documentation ¶
Index ¶
- type Scene
- func (scene *Scene) CapsuleRaycast(head, foot linmath.Vector3, radius float32, origin, direction linmath.Vector3, ...) (float32, bool)
- func (scene *Scene) CreatePlayer(pos, rota linmath.Vector3) *UnitypxPlayer
- func (scene *Scene) Raycast(origin, direction linmath.Vector3, length float32, mask int32) (float32, linmath.Vector3, int32, bool)
- func (scene *Scene) SphereRaycast(center linmath.Vector3, radius float32, origin, direction linmath.Vector3, ...) (float32, bool)
- func (scene *Scene) UpdatePlayer(player *UnitypxPlayer, pos, rota linmath.Vector3)
- type UnitypxPlayer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scene ¶
type Scene struct {
// contains filtered or unexported fields
}
Scene 场景静态物理信息
func NewEmptyScene ¶
func NewEmptyScene() *Scene
func (*Scene) CapsuleRaycast ¶
func (*Scene) CreatePlayer ¶
func (scene *Scene) CreatePlayer(pos, rota linmath.Vector3) *UnitypxPlayer
func (*Scene) Raycast ¶
func (scene *Scene) Raycast(origin, direction linmath.Vector3, length float32, mask int32) (float32, linmath.Vector3, int32, bool)
Raycast 射线检测
func (*Scene) SphereRaycast ¶
func (*Scene) UpdatePlayer ¶
func (scene *Scene) UpdatePlayer(player *UnitypxPlayer, pos, rota linmath.Vector3)
type UnitypxPlayer ¶
type UnitypxPlayer struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.