#alr thank you guys, but im a beginner,

1 messages · Page 1 of 1 (latest)

gray marten
#

here is your thread. videos work too

#

show collider gizmos. sow !code

wind rivetBOT
quaint plume
#

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

pearl crag
#

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

quaint plume
#

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

naive quail
quaint plume
#

either setting its velocity or adding forces

pearl crag
#

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

light trellis
#

yup, im here

pearl crag
#

do you have a clue?

quaint plume
#

You need to move it by either setting the velocity or using forces

#

The animator may also be hurting you