Quantcast
Channel: Questions in topic: "addforce"
Viewing all articles
Browse latest Browse all 1264

RigidBody only moves when I remove Collider

$
0
0
I'm trying to create Flappy Bird as a tool to learn Unity & essentially I've added this script to the "pipes". When I remove the Collider they work perfectly fine, but obviously I need the collider for them to function properly. When I add the collider they just sit there & bump into each other. Any ideas? #pragma strict public var speed : int; function Start () { var newSpeed : Vector2; newSpeed.x = speed; newSpeed.y = 0; GetComponent.().AddForce(newSpeed); }

Viewing all articles
Browse latest Browse all 1264

Trending Articles



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