I'm trying to make a jump pad (not necessarily with playmaker) for 1st person character controller with charactermotor, like the 3rd person "Lerpz"
tutorial on the unity tutorial area, you collide with it and get boosted in y. (up). My search came up with
this script
//jump_pad2.js
#pragma strict
var moveVelocity : Vector3 = Vector3.zero;
private var thePlayerMotor : CharacterMotor;
function Start(){
thePlayerMotor = GetComponent(CharacterMotor);
}
function OnTriggerEnter(WhatHitMe : Collider){
if (WhatHitMe.gameObject.tag == "JumpPad"){
moveVelocity = Vector3(0,50,0);
thePlayerMotor.SetVelocity(moveVelocity);
}
}
I have a flat rectangle (made a Tag 'JumpPad') with a larger box collider (is_trigger) and the script attached to it, but nothing
happens when I jump on it. Anybody know what I'm missing here? An FSM would be overkill I think.
Playmaker noob tuts:
http://terrymorgan.net/playmaker/playmaker.html