Skip to main content

TossTest

A class in Root.Township, the global namespace.

A test component that sets its rigidbody's velocity when Space is pressed.

Constructors​

MemberWhat it is
TossTest()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private Vector3 velocityVelocity applied on Space.

Methods​

1 private and internal method
MemberWhat it is
private void Update()On Space, sets the attached rigidbody's velocity to velocity.