Chunks
Moddable voxel sandbox for room-scale VR.
Public Attributes | Properties | List of all members
Chunks.Geometry.WorldRaycastHit Struct Reference

Describes a collision between a ray and the world. More...

Inheritance diagram for Chunks.Geometry.WorldRaycastHit:
Chunks.Geometry.IWorldHit

Public Attributes

readonly Vector Position
 World position of the collision. More...
 
readonly Vector Normal
 Surface normal of the collision. More...
 
readonly float Distance
 Distance along the projected ray that the collision ocurred. More...
 
readonly IntVector BlockPosition
 World block position of the collision. More...
 
readonly Block HitBlock
 The type of block that was hit. More...
 

Properties

Vector IWorldHit. Position [get]
 
Vector IWorldHit. Normal [get]
 
float IWorldHit. Distance [get]
 
- Properties inherited from Chunks.Geometry.IWorldHit
Vector Position [get]
 World position of the collision. More...
 
Vector Normal [get]
 Surface normal of the collision. More...
 
float Distance [get]
 Distance along the projected ray or sweep that the collision ocurred. More...
 

Detailed Description

Describes a collision between a ray and the world.

Member Data Documentation

readonly IntVector Chunks.Geometry.WorldRaycastHit.BlockPosition

World block position of the collision.

readonly float Chunks.Geometry.WorldRaycastHit.Distance

Distance along the projected ray that the collision ocurred.

readonly Block Chunks.Geometry.WorldRaycastHit.HitBlock

The type of block that was hit.

readonly Vector Chunks.Geometry.WorldRaycastHit.Normal

Surface normal of the collision.

readonly Vector Chunks.Geometry.WorldRaycastHit.Position

World position of the collision.

Property Documentation

float IWorldHit. Chunks.Geometry.WorldRaycastHit.Distance
get
Vector IWorldHit. Chunks.Geometry.WorldRaycastHit.Normal
get
Vector IWorldHit. Chunks.Geometry.WorldRaycastHit.Position
get

The documentation for this struct was generated from the following file: