Quantcast
Channel: Questions in topic: "quaternion.slerp"
Viewing all articles
Browse latest Browse all 133

No more collision while Quaternion.Slerp

$
0
0
Hi, I got this object with rigidbody (no gravity) and a capsule collider matched to the objects dimensions (no trigger). The following script is attached to it: This is in the Update() function counter += Time.deltaTime; spiralparent.transform.rotation = Quaternion.Slerp (spiralparent.transform.rotation, Quaternion.Euler (new Vector3(0.0f,-0.0f,counter * 100)), 1.0f); The Problem is, when the script is attached, there is no more collision detection. I got no "OnCollisionEnter" because I want just the default collision with not passing through the Object and with the rotation the object actually pushing my player away. When I remove the script the collision works fine, I can't walk through the object, but of course the rotation is gone. Any hints for that?

Viewing all articles
Browse latest Browse all 133

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>