Physics Questions
2
Solved
I am making a 3D game and have added a feature that if the Bot collides with a specific object, it gets knocked back.
I am using a NavMeshAgent for the bot and this goes against the Rigidbody so I dis...
Abacus asked 24/8, 2020 at 2:57
1
Solved
Applying a rotational force to the rigidbody attached to the spine or hips has no effect. Applying a force works as expected… but applying torque has no effect. How can I rotate a ragdoll through forc...
Mutualize asked 6/1, 2020 at 4:38
5
RaycastAll is supposed to return all objects on the path of the ray for specified distance, right?
RaycastHit[] hits = Physics.RaycastAll(ray, float.PositiveInfinity);
// DEBUG
string debug = "Raycas...
2
Solved
I’m making a big laser that uses CircleCast to detect collision with objects. And I use LineRenderer to render the laser, a ParticleSystem to render the hit effect. The problem is, if I set the Line’s...
Evadnee asked 21/10, 2020 at 1:53
2
I am trying to program my FPS game. It’s working like this:
I am near car and press E button. My FPS man go drive car now. But i have few problems.
One. How i can make camera follow the car?
Two: I us...
Furst asked 3/12, 2012 at 21:42
3
Hey guys, every time when I press play in Unity, my player rotates immediately for no reason. Does someone know how I can fix that?
Glabrescent asked 26/2, 2022 at 8:17
2
Solved
There may be a solution for this already, but i personally can’t seem to find any…
So I used Dani’s Karlson tutorial for fps movement link:
i think I’ve done everything correctly, but for som...
Broussard asked 26/5, 2021 at 14:25
1
My game use 2d physic, but 3D graphics. The unity editor automatically generates a collider polygon using the sprite of the desired shape. If for example on a sprite a circle is drawn on a transparent...
Crosby asked 23/3, 2018 at 14:28
1
My RigidBody2D sometimes clips the corner of a TileMap tile and seems to trip over it. Both the rigid body and tiles have perfectly square shapes and it seems completely unpredictable when a clip will...
Peppergrass asked 7/3 at 16:34
15
Solved
guys im struggling over an hour on the 2d collision event. Currently I have 2 sprite’s each have a 2d boxcollider and are triggers. I have set the tag of one of the sprite’s to “player” but it still d...
Pollywog asked 8/12, 2013 at 22:13
4
Hello,
i'm trying to code a top down space shooter in 3D (i did it in 2D)
I have problem to rotate the ship face to the mouse pos.
I dont want to use "look_at" but i need to use torque for realism.
I ...
Ankylose asked 16/3 at 9:45
6
Solved
Hey all,
Basically, I have a box that the player has to be able to collect. When the player “collects” it, the box will actually just instantly move to another spawnpoint, and I’ll also execute scorin...
Doehne asked 2/7, 2014 at 0:9
2
Solved
Hey all so I ran into this issue here.
Here’s a quick video to summarize it:
Let me know if you need any more details.
Thanks for your help in advance!
Bighead asked 11/5, 2017 at 6:33
3
Solved
I’ve made a player with a Character Controller, and no other Collider.
I am trying to use the function OnTriggerEnter or OnTriggerStay, but it doesn’t seem to work with the Character Controller.
Does ...
Guadiana asked 27/3, 2016 at 12:42
6
point-click-copy.zip3MB
I'm making a project where the player moves towards the position where you click and I want the player to change to the IDLE state when they reach that position, but I seem to ...
Codd asked 3/3 at 17:54
5
My question here is the basically the title. I have a rigidbody, that will detect if it collides with something, and if it collides with the tilemap it will perform a specific operation on the tile it...
Char asked 31/1, 2023 at 0:45
3
When I add Wheel Collider i don’t see anything and I did every solution i saw like add Rigidbody, parenting but still there is nothing is there any solution for this?
Sibelle asked 10/4, 2020 at 19:22
4
Solved
So i have these boxes in my game that the player can move around and jump on top of. the player can also break these boxes in order to get the shape they want. how this works is that all the boxes are...
Sarmiento asked 5/2 at 13:22
6
Solved
Hi, I have attached a 2d collider to my game object, but when animation is playing the collider is not updating, can anyone tell me how to update collider with the animation?
Thanks
Methodius asked 19/6, 2016 at 20:30
2
Solved
I need help with shape casting, I search in the documentation and I found nothing 😢. Does anyone knows how to shape casting?
Crumhorn asked 26/2 at 1:13
4
I tried to create an idle state by saying "if velocity == 0:", but I get an error saying "Invalid operands 'Vector2' and 'int' for '==' operator".
It seems like it only works if you say "velocity.x" ...
Arlin asked 19/2 at 18:59
3
Solved
Hi,
I am trying to check the collision between two colliders and OnCollisionEnter() doesn’t work unless one of the object is RigidBody. I can’t use Rigid Body for all the objects as it’s a way expensi...
Airwoman asked 7/11, 2010 at 6:3
10
I’m making a 2D platformer, and my player can shoot projectiles. I don’t want the projectiles to be able to collide with the player, have tried some different things, but can’t get it to work. Can any...
Pathfinder asked 14/4, 2014 at 20:47
7
I built a simple game using Unity’s built in NavMesh Agent AI system.
My player has a laser that uses a raycast to apply a force to the enemy to not it back. This works… for the first couple seconds o...
Vadnais asked 8/3, 2014 at 5:30
2
Solved
I’m trying to trap objects (with RigidBody2D) inside a circle and use the object’s physics material to calculate bouncing/friction with the circle’s border… Yet I can’t figure out how to get less of a...
Nathanialnathaniel asked 8/4, 2014 at 21:4
1 Next >
© 2022 - 2024 — McMap. All rights reserved.