#Disable gravity using velocity set

1 messages · Page 1 of 1 (latest)

fresh quarry
#

For reference, these two objects (right is physics based) should have an almost equal position

#

Gravity drags the right object down though

#

The magnitude of the velocity being set is based on distance so the object ends up at a hover point where gravity and the distance (ran through some math) are about the same

opaque sedge
#

@fresh quarry how do you keep them still and stop them from shaking?

im using a set velocity to keep a object at a certain height but during the delta time the object keeps falling causing it to shake

how do i fix this?

ripe needle
opaque sedge
#

: o

#

did the first to

#

ima try an update

ripe needle
#

If authority of the object let it run

opaque sedge
#

ik i did the first to

ripe needle
#

Awsome

opaque sedge
#

ima try the update

#

and see if it works

#

1 min

ripe needle
#

Okay, might be more smoother

opaque sedge
#

A LOT BETTER but

#

their is some really tiny snaps

#

if i can't do anything

#

to fix it im happy like this but if their is more i can

#

do please explain

#

@ripe needle

ripe needle
#

Helps me out understand a bit better

opaque sedge
#

how?

ripe needle
#

Like 3 seconds or sum

#

Doesn't have to be long

opaque sedge
#

ima load this on screen to make this a bit more easy

#

it started snapping a bit more that im on screen? idk why

#

@ripe needle

opaque sedge
ripe needle
opaque sedge
#

oh so disable it if at location?

ripe needle
#

Yeah

opaque sedge
#

should i use equal

ripe needle
#

So it won't keep updating for every little change

#

Range it

opaque sedge
#

how close?

#

0.2

#

0.08?

ripe needle
#

For ecample Like if the target number is 5 if it's close enough. Like 4.9, 5,5.1, then yeah

opaque sedge
#

ok ill try it 1 sec

ripe needle
#

Cool

ripe needle
opaque sedge
#

so new flash

opaque sedge
#

and their is no "target location"

#

[for context it is meant to be a npc that moves towards you untill a set distance

ripe needle
#

So you're making an object follow the player right?

opaque sedge
#

yes but it is meant to stop when 3 meters or closer

ripe needle
#

Simple, just once the distance has been met, then stop the updating

#

Unless its physical

opaque sedge
#

it is

ripe needle
#

If the object is like affected by gravity

opaque sedge
ripe needle
#

Ah

#

Okay then

opaque sedge
#

not the best picture

ripe needle
#

Okay imma try aomething

#

Nonworrys

#

So basically, an object follows you but needs to stay still right? Because it's physical

opaque sedge
#

yea when it's in range [and to look at you but that works at the moment ]

ripe needle
#

Okay

opaque sedge
ripe needle
#

Imma try something

opaque sedge
ripe needle
#

You locked it on the floor height

#

Okay

opaque sedge
#

the players ground +0.5

#

in the Y

ripe needle
#

Okay

#

I'll check it out on my end

opaque sedge
opaque sedge
#

BRB in 10 hours

ripe needle
#

Lol I didn't see that message

#

Figured it out

#

There ya go

opaque sedge
#

ok ill swap it to a set trasform

#

when it's close

#

and see what happens

ripe needle
#

Every last chip

opaque sedge
opaque sedge
opaque sedge
#

hard to read some of it but im tryingg

ripe needle
#

It's set to 1.5

opaque sedge
#

alright

ripe needle
#

It's on both split + create

#

Whatever numbers there if u change make sure they're the same

opaque sedge
#

does a set transform change a position? or set it

#

[ik there is a rotation but overlooking that ]

#

@ripe needle

ripe needle
#

It sets the positions and rotation

#

It's set position + set rotation together

opaque sedge
#

so a respawn? 2.0?

ripe needle
#

Respawn is like a set transform, except it can stop the velocity of that object and use rez effect.

#

If enabled

opaque sedge
#

isn't my goal to stop velocity

#

or gravity?

ripe needle
#

It's up to u, it would be the same result I believe.

opaque sedge
#

ima try to add it

ripe needle
#

Try using what I have already, if you think it needs it. Then replace the set transform

#

Okay

opaque sedge
#

and also would need more added on to it so the ability works in game [but yea ill make it]

ripe needle
#

K

opaque sedge
#

chips down wireing time

#

the image is for easier zoom in on my end

#

BAM

#

i did it [ i still have to get it in the game but if that works then yea it will work ]

#

by the way you swapped the rotations [it means nothing really i just thought tot say it]

#

@ripe needle

#

ill at again when i get it working or not working in the room

opaque sedge
#

@ripe needle in short it works currently but i have to add a few other features [ i doubt it would break when i add them ] but ill re @/update you when the move is done and explain if there are or aren't any bugs [ in less short so far so good ]

opaque sedge
# ripe needle Cool

i just wanna say the model is being animated so the features that will be added [ that might cuz bugs will take a bit ]
just to let you know @ripe needle

ripe needle
#

Lol

#

So it works?

opaque sedge
# ripe needle So it works?

yea but then again it is not done [and i fear it breaking again as it gets complete because i doubt id know how to fix it ]

ripe needle
#

Just finish