#alr thank you guys, but im a beginner,
1 messages · Page 1 of 1 (latest)
📃 Large Code Blocks
Use links to services like:
https://paste.mod.gg/, https://hastebin.skyra.pw/, https://paste.ofcode.org/, https://paste.myst.rs/, https://scriptbin.xyz/
📃 Inline Code
Surround code with three backquotes. Not quotation marks.
To format as C#, add cs to the first line:
```cs
// Your code here
```
Add a comment with a line number if there is an error message.
Show us the inspector of the objects involved
Show us the movement or spawning code
Show us where teh player is being spawned or trying to move
this is the code for my movement,
this is where he spawns and the inspector of the character
but for the other objects, it is a long list bcs i imported it from unity assetstore
Ok so immediately there's a huge problem
your character is moving via the Transform
But it is a physics object with a Rigidbody
Moving directly via the Transform completely ignores the physics engine, and will teleport th object directly inside other physics objects
this can easily lead to it fly away violently since the physics engine wants to fix the problem of objects overlapping each other
If you are using Rigidbody you need to properly move those objects via physics - aka via the Rigidbody
Isn't it better to delete a project and go to sleep

either setting its velocity or adding forces
you are probably right, but before i imported the school asset it was working perfectly fine? so if i should not use the transform, how do i fix it?
i changed the script with chat gpt since im a noob at this. so now it doesnt use transform butn rigid body. but it still flies away
@light trellis
yup, im here
do you have a clue?
MovePosiiton is not any better
You need to move it by either setting the velocity or using forces
The animator may also be hurting you