+ 1
How come when i add a rigidbody my character falls in unity and no i did not add a floor.I want textures to move like in pkmon.
10 Respuestas
+ 2
RigidBody is basically adding Unity's Physics to the objects. Things like gravity, and movement when bumping into colliders based on mass.
So, with a rigidbody your object will fall from gravity. If you don't want him to fall through the floor you need to use a Collider. That way the object collides on impact with the ground, and knows not to go through it.
+ 2
If you are moving him via script, you can make the rigidbody Kinematic. So, it is not effected by physics.
Edit:
In the inspector you should see a 'IsKinematic' option. Be sure to check it
Edit Edit:
Sorry if you read 'static', I editted the post, meant to say Kinematic, not sure why I said Static.
+ 2
Yea I believe AddForce should still move the Object. Although it may not be effected by gravity while it is kinematic. Ps: Sry about saying static, I meant Kinematic. Original post editted
**
Although, I'm not 100% sure if Addforce would do something, since it's a force.
+ 2
You could also just move the object via script, without rigidbodies. If it's like Pokemon with the battle thing .
+ 2
Is it 2d or 3d?
If 2d, I haven't played recent Pokemon. But the old ones certainlly just place the Pokemon on the picture of the grass or texture.
It depends how you want to deal with it.
You can:
*Use the texture as the battle ground, and actually have them on the ground with rigidbodies and colliders. You can use images as the grounds. If they have colliders.
Or
*Use whatever as the ground. Have them floating in the air, but from the perspective of the player it looks like they're on the ground.
+ 2
Yes a 2d type. Thank You for your suggestions you are great help.
+ 1
So a pokemon game has a ground? How would i align the floor being a texture with another texture since they are flat.
+ 1
Thanks for the help Rrestoring faith!
0
The thing is i dont want to add a groung because i want my sprite to walk up and down a texture like in pokemon for gameboy.
0
when i make the rigibody static it still moves is it because i have the addforce function on?