unitypx

package
v0.0.0-...-135b9b9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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 NewScene

func NewScene(path string) (*Scene, error)

NewScene 加载新的场景

func (*Scene) CapsuleRaycast

func (scene *Scene) CapsuleRaycast(head, foot linmath.Vector3, radius float32, origin, direction linmath.Vector3, length float32) (float32, bool)

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 *Scene) SphereRaycast(center linmath.Vector3, radius float32, origin, direction linmath.Vector3, length float32) (float32, bool)

func (*Scene) UpdatePlayer

func (scene *Scene) UpdatePlayer(player *UnitypxPlayer, pos, rota linmath.Vector3)

type UnitypxPlayer

type UnitypxPlayer struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL