Hello…I have one question about move…when you want to make some character to move you use FPS controller and then it creates a character controller for your object(character) and that is always sphere…soo my question is can we make that sphere…the mesh of the object?
Btw if you have few different meshes how can you make 1 of them all?
Please again and in english.
See this ImageShack - Best place for all of your image hosting and image sharing needs
I want to use that but instead of that sphere for colision that is created by character controller I want to use mesh…
Is it possible?
Can anyone help me?
Not possible. Unity doesn’t support 2 mesh colliders colliding with eachother.
Then how can I do this…cuz I would need to colide…like one beyblade with his mesh and the other with his mesh?
Well unless you set one of them to convex of corse. But convex’ed mesh collider are limited to 255 triangle models.
Edit;
Oops forgot the quote.
Can you describe me how to do that…cuz I think I dont have that much triangles?
Simple, just click your object, add a mesh collider and then set “Convex” to true.
what if the game start to freeze?
and it says vertex count> than 60000
and it says vertex count> than 60000
and btw how can I add move without character controller?
Well mesh colliders are pretty heavy hit on performance, so it might slow it down.
But it should not just make it freeze. Unless you have a lot of them.
60,000 sheez thats a lot of poly’s for a beyblade. Way (WAY) more then the 255 limit.
So your only other options are to;
A
Lower the poly’s to under 255 per model. Probably don’t want to use this method.
B (recommended)
Create a compound collider for you model;
http://unity3d.com/support/documentation/Components/class-BoxCollider.html
Scroll down a bit to find what your looking for.
Movement is a whole other matter and would probably be better answered with a forum search.
actually beyblade is only 8000 polys…btw the only thing I want to do is change that character controler to have shape of my mesh…for coliding…actually with convex it doesnt freeze but it still goes trought other surfaces
Well character controler will always have a capsule/sphere collider, so I would suggest looking into other was of moving. transform.Translate would be one. But anyway you do it, if you want custom collider your going to have to make a movement script.
Can you make one…just basic move and jump?
But with mesh instead of that sphere for character controller…
Fine;
@script RequireComponent(Rigidbody)
var speed : float = 5.0
var jump : float = 10.0;
function Start(){
rigidbody.freezeRotation = true;
}
function FixedUpdate () {
var v : float = Input.GetAxis ("Vertical");
var h : float = Input.GetAxis ("Horizontal");
rigidbody.velocity = Vector3(h * speed,rigidbody.velocity.y,v * speed);
if (Input.GetButtonDown ("Jump")) {
rigidbody.velocity = Vector3(rigidbody.velocity.x,,jump,rigidbody.velocity.z);
}
}
But no more freebees lol.
P.s. good luck with your game.
Thanks but now it’s falling trough surface