Pixelpart 1.8.2
Unity Plugin
Loading...
Searching...
No Matches
PixelpartLineCollider Class Reference

Collider consisting of several connected line segments (2D only). More...

Inheritance diagram for PixelpartLineCollider:
[legend]

Public Member Functions

 PixelpartLineCollider (IntPtr effectRuntimePtr, uint id)
 Construct PixelpartLineCollider.
 
void AddPoint (Vector3 point)
 Add a vertex to the end of the line collider.
 
void SetPoint (int index, Vector3 point)
 Change the location of a vertex in the line collider.
 
void RemovePoint (int index)
 Remove a vertex from the line collider.
 
Vector3 GetPoint (int index)
 Return the location of a vertex in the line collider.
 
- Public Member Functions inherited from PixelpartCollider
 PixelpartCollider (IntPtr effectRuntimePtr, uint id)
 Construct PixelpartCollider.
 
- Public Member Functions inherited from PixelpartNode
 PixelpartNode (IntPtr effectRuntimePtr, uint id)
 Construct PixelpartNode.
 

Properties

int PointCount [get]
 Number of vertices in the line collider.
 
int NumPoints [get]
 Number of vertices in the line collider. Deprecated, use PointCount.
 
- Properties inherited from PixelpartCollider
PixelpartStaticPropertyBool KillOnContact [get]
 Whether to kill particles on contact with the collider.
 
PixelpartAnimatedPropertyFloat Bounce [get]
 How strongly particles bounce back from the collider.
 
PixelpartAnimatedPropertyFloat Friction [get]
 How much particles are slowed down when sliding down the collider.
 
- Properties inherited from PixelpartNode
uint Id [get]
 ID of the node.
 
uint ParentId [get]
 ID of the node's parent.
 
string Name [get]
 Name of the node.
 
float LifetimeStart [get, set]
 Time in seconds until the node becomes active.
 
float LifetimeDuration [get, set]
 How long the node stays active in seconds.
 
bool Repeat [get, set]
 Wether the node repeats its behavior after its lifetime is over.
 
bool Active [get]
 Whether the node is active at the current point in time.
 
float LocalTime [get]
 Time fraction the node has been active for, in range 0.0 (0%) to 1.0 (100%).
 
PixelpartAnimatedPropertyFloat3 Position [get]
 Position of the node.
 
PixelpartAnimatedPropertyFloat3 Rotation [get]
 Rotation of the node in degrees.
 
PixelpartAnimatedPropertyFloat3 Scale [get]
 Size of the node.
 

Detailed Description

Collider consisting of several connected line segments (2D only).

Line colliders combine several collision segments together and are defined by a set of points at the vertices of the line segments.

Constructor & Destructor Documentation

◆ PixelpartLineCollider()

PixelpartLineCollider ( IntPtr effectRuntimePtr,
uint id )

Construct PixelpartLineCollider.

Parameters
effectRuntimePtrEffect runtime
idNode ID

Member Function Documentation

◆ AddPoint()

void AddPoint ( Vector3 point)

Add a vertex to the end of the line collider.

Parameters
pointPoint to add

◆ GetPoint()

Vector3 GetPoint ( int index)

Return the location of a vertex in the line collider.

Parameters
indexIndex of the vertex
Returns
Vertex location

◆ RemovePoint()

void RemovePoint ( int index)

Remove a vertex from the line collider.

Parameters
indexIndex of vertex to remove

◆ SetPoint()

void SetPoint ( int index,
Vector3 point )

Change the location of a vertex in the line collider.

Parameters
indexIndex of the vertex
pointNew location

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