MovementKit
Loading...
Searching...
No Matches
RiverExplorer.ObjectsColliding Class Referenceabstract
Inheritance diagram for RiverExplorer.ObjectsColliding:
Collaboration diagram for RiverExplorer.ObjectsColliding:

Public Member Functions

void ActOnCollision (Collision CollidedWith, Rigidbody Rb)
 

Private Member Functions

void OnCollisionEnter (Collision CollidedWith)
 

Private Attributes

Rigidbody OthersRigidBody
 

Detailed Description

This is reusable code, attach this component to objects that care about collisions with other objects.

Generally, I attach the ObjectsColliding component to the object that is moving only. If I attached it to both the moving object and the non-moving object, then it would be called twice, once for each object.

Member Function Documentation

◆ ActOnCollision()

void RiverExplorer.ObjectsColliding.ActOnCollision ( Collision CollidedWith,
Rigidbody Rb )
abstract

Objects that use this object, must define a function with this signature. This starter kit includes a CollisionControl.cs template that is to be filled in with the unique to this game data and code.

Parameters
CollidedWithThe object this object collided with.
RbThe RigidBody component from the collided with object. It might not have one, so this could be null.
Here is the caller graph for this function:

◆ OnCollisionEnter()

void RiverExplorer.ObjectsColliding.OnCollisionEnter ( Collision CollidedWith)
inlineprivate
Here is the call graph for this function:

Member Data Documentation

◆ OthersRigidBody

Rigidbody RiverExplorer.ObjectsColliding.OthersRigidBody
private

The other objects rigidbody. It might not have one.


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