GameObject PlaceSplatter (Vector3 position, Vector3 direction, GameObject hitObject)

Parameters

NameTypeDescription
position Vector3 Where the hit landed.
direction Vector3 The direction the hit was travelling.
hitObject = null GameObject What was hit, which the trace passes through. Its whole model for a ragdoll.

Returns

TypeDescription
GameObject The decal's GameObject, or null if none was placed.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.