DinoFracture 2.11.1
A Dynamic Fracture Library
Loading...
Searching...
No Matches

DinoFracture.SlicePlane Struct Reference

Defines a plane that slices the mesh in half. More...

Collaboration diagram for DinoFracture.SlicePlane:
[legend]

Public Member Functions

UnityEngine.Plane ToPlane ()
 Converts this object to a Unity plane.
 

Public Attributes

Vector3 Position
 Local space position of the plane.
 
Quaternion Rotation
 Local space rotation of the plane.
 
float Scale
 Scale of the plane.
 

Static Public Attributes

static readonly SlicePlane Identity
 Default, "identity" plane.
 

Detailed Description

Defines a plane that slices the mesh in half.

Values are in the mesh's local space.

Member Data Documentation

◆ Rotation

Quaternion DinoFracture.SlicePlane.Rotation

Local space rotation of the plane.

Z dir is the plane's normal.

◆ Scale

float DinoFracture.SlicePlane.Scale

Scale of the plane.

This is only used to display it in the editor. When slicing, the plane will be treated as infinite in size.