LightningGeneratorRandomVector Method |
Generate a random vector
Namespace:
DigitalRuby.ThunderAndLightning
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public void RandomVector(
LightningBolt bolt,
ref Vector3 start,
ref Vector3 end,
float offsetAmount,
Random random,
out Vector3 result
)
Public Sub RandomVector (
bolt As LightningBolt,
ByRef start As Vector3,
ByRef end As Vector3,
offsetAmount As Single,
random As Random,
<OutAttribute> ByRef result As Vector3
)
public:
void RandomVector(
LightningBolt^ bolt,
Vector3% start,
Vector3% end,
float offsetAmount,
Random^ random,
[OutAttribute] Vector3% result
)
member RandomVector :
bolt : LightningBolt *
start : Vector3 byref *
end : Vector3 byref *
offsetAmount : float32 *
random : Random *
result : Vector3 byref -> unit
Parameters
- bolt
- Type: DigitalRuby.ThunderAndLightningLightningBolt
Lightning bolt - start
- Type: Vector3
Start position - end
- Type: Vector3
End position - offsetAmount
- Type: SystemSingle
Offset amount for variance - random
- Type: SystemRandom
Random instance - result
- Type: Vector3
Receives random vector
See Also