#HELP
1 messages · Page 1 of 1 (latest)
Help me 😢
Velocity chip😶
i think get when it has hit a wall, then invert its velocity and then add velocity
Use vector reflect
velocity reflect*
I thought they were using environmental objects
How do I use velocity reflect? Now I put the object (spikes) on physical
😢
I always get stuck in my game because I never find the solution to my problems
Help
I want to make a mario party minigame like the one in the picture, I want the spikes to bounce off the walls of the circle, but i dont know how to use cv2 😢
MARIO PARTY MINIGAME CV2
help
I tried to do I similar system but it didn't worked
I'm also looking for help
On how this works
sadly no one helps yet 😢
You spamming isn’t going to help
This system is really complicated because you have to move an environmental object, apply resistance and friction
Bro it's been 5 days since the publication and I still don't get a response
Womp Womp
Its physical
@next elbow can you help with this maybe?
First if all don't use physical, it'll just break a lot
What do I use?
Do you even know any cv2?
Yeahhh you should probably learn it first.
only the basics
This is gonna use vectors and stuff so your gonna wanna learn that first
It’s a very complicated system
I totally could
But then someone said the answer so I left the post
^
Nah he needs step by step
Ok I can try
K3 W as always
When I get to where I’m going
Or when I come back idk
If someone hasn’t answered by then
what about vector variable a vector reflect and trigger volumes and the one on the spike searches for trigger volumes on the walls using equals connected to the object entered and the volumes on the walls
oh my god grammar.
ikr
I almost fainted saying that outloud
daym
If you can't explain it to a 5yrld, do you really know what you're talking about?
i do its just grammer
@carmine ocean You're just as confused, if not more, than OP.
You need to speak to your english teacher, and pray they help you type english in such a way, you don't sound like you just did.
I think I had a stroke reading that
Oh
You can use the “Vector3 Reflect” chip to simulate a vector reflecting off of a surface defined by its normal.
- Using an “Event Receiver: Update 30 Hz” chip (spawn an “Event Receiver” chip using your Makerpen menu, and using the “Configure” tool, configure its event to “Update 30 Hz”), detect when the object collides with the walls of the circle. If your circle is a physical object, you can detect when the object collides using the “Overlap Sphere” chip, with the radius input being the radius of your object. Otherwise, you can define your circle by its origin and radius and check if the distance (using the “Distance” chip) between the circle’s origin and the object’s position (using the “Get Position” chip) is greater than or equal to (using the “Greater Or Equal” chip) the circle’s radius subtracted by the object’s radius (using the “Subtract” chip). (Greater Or Equal(Distance(Circle Origin, Get Position(Object)), Subtract(Circle Radius, Object Radius))).
- If it is colliding with the walls of the circle (using the “If” chip), set the velocity of the object to its reflection off of a plane defined by the normal of the surface it collided with. The surface normal is the normalized result of the circle’s origin subtracted by the object’s position. (Vector3 Normalize(Subtract(Circle Origin, Get Position(Object)))). To get the reflected vector, you can use the “Vector3 Reflect” chip, with the object’s velocity as the vector and the surface normal as the normal.
If your object is not physical, you can do the following:
- Create a “Vector3” variable representing its velocity (I’m will refer to this variable as “Object Velocity”).
- Using the same Event Receiver: Update 30 Hz chip that is used to detect collisions, after determining whether the object is in contact with the circle, set the position of the object (using the “Set Position” chip) to the sum of (using the “Add” chip) its current position (using the Get Position chip) and the result of its velocity (the Object Velocity Vector3 variable) scaled by DeltaTime (using the “Vector3 Scale” chip).
- Whenever you are supposed to set the velocity of the object, set the value of the Object Velocity variable instead.
- Whenever you are supposed to get the object’s velocity, get the value of the Object Velocity variable instead.
I’m noticing that there isn’t a “Vector3 Reflect” chip. To get the reflected vector, you can instead create the following circuit: (Add(Vector, Vector3 Scale(Vector3 Dot(Vector, Normal), Scalar = -2))). To input the value of -2, you may need to use a “Parse Int” chip. You can also use the “Circuit Board” chip to combine all of these circuits into a single circuit board, and you can include an input of -2 in the circuit board. Make sure to include the input Vector and Normal as inputs, and the output Vector as an output.
Let me know if this helps.
I'ma make dis a chip
Vector3 dot gives me a float
I think it's called inverse
No
How did yall make up a chip 😭
Multiply the dot product by -2
Ok
Mb
I thought I remembered seeing Vector3 Reflect in the update notes
Btw, just realized that vector dot outputs a float, so no need for parse or putting an input on the circuit board