Game Development Reference
In-Depth Information
raise the character in the y direction is the height of the player's collision cap-
sule as shown in the following code:
this.transform.position = new
Vector3(this.transform.position.x,
hitinfo.point.y +
(this.collider as
CapsuleCollider).height,
this.transform.position.z);
Search WWH ::




Custom Search