Hello, I created an actor (pawn) where it moves alone, that is fine, but it only floats and does not collide with anything, how can I solve that?
Can we see the pawn hierarchy? All that is needed to move a pawn → right ->, with physics included:
Are you sure you want physics here? Do you mean gravity?
Don’t use both. Stick with the movement Input only.
It sends me that error: “Invalid Simulate Options: Body (Hongo1.Hongo Hongo) is set to simulate physics but Collision Enabled is incompatible”
It probably means the mesh asset has no collision or the collision is disabled. Or the collision is set to overlapping. For physics to work, you need blocking collision.
Share the component hierarchy and collision settings of the Pawn’s root element if you need more help.
The static mesh is in the wrong place in hierarchy, compare it to mine. Drag it to the root.
I stayed very well
but there is a problem when I use it to get it out of the box
That’s when I add the collision to the mushroom.
There the physics is general but it is seen that it collides with the box and generates the error
this is in the box
this in the mushroom
here when I play without physics
and here with physics
this is the error text
Blueprint Runtime Error: “Attempted to access Hongo1_C_0 via property Hongo, but Hongo1_C_0 is not valid (pending kill or garbage)”. Node: Set Actor Location Graph: EventGraph Function: Execute Ubergraph Caja Acertijo Poder Blueprint: Caja_acertijoPoder
It is quite possible Hongo never spawns as you spawn it inside the cube. The spawn actor node has an override for that but that’s not a great solution.
What I’d do, I’d change the collision of the spawned actor in such a way that it does not interfere with the box until the timeline has finished playing.
Would you show me what it would be like? I never changed collisions in time
The cube:
Its Object Type
is set to WorldStatic
. It blocks Tracing
and Object Responses
(collision) of other types listed below.
Hongo’s collider:
It blocks anything that is World Static
- like the cube’s World Static
object type. In short: cube’s word static responds to the pawn’s world static by blocking it:
If I change the Hongo’s collision to overlapping against World Static types:
Hongo will Overlap
them, they can easily spawn inside of it, and hop out of it, no problems. But he cannot stand on it… That’s where your Timeline
comes in. When it Completes
, we can restore Hongo’s collision:
They are now blocking World Static as soon as they pop out of the box.
Quick summary:
- in Hongo’s BP, set the
Object Responses
toOverlap
orIgnore
theObject Type
of the box - when the Timeline completes, use the
Set Collision Response to Channel
node toBlock
it
The above gives you a lot of granularity regarding who blocks whom and responds to what, when and how. You can (and often should) add more channels and object types (last link at the bottom of this post). For example: when Mario shoots projectiles, they should not be able to accidentally hit him. Understanding Collision Filtering would allow you to efficiently set that up.
tl;dr: alternatively:
- disable collision on the pawn initially:
- and then enable it when needed:
This is pretty ham-fisted, though. Having a decent grasp on how the channels work pays off in the long run. Decide for yourself if you’re into this for the long run or just doing homework.
More reading:
Hey. I think here is simple decision. Just make box mesh without top. From side view nobody see it. And. Not forget make collision repeating the shape, not standard. What’s it called? Just double-click on the actor’s blueprint and you’ll figure it out.
Hello, very good information, I really liked it but it’s not working for me yet, I don’t know what I’m doing wrong but the champion keeps colliding with the box
that’s the box
that’s the championship
This looks like some additional collision box… Either use a mesh to block or the collision box. Don’t use both. I mean, you can, but then you’d need to do everything twice.
It already crosses the box but falls on me
There is physics but it does not follow its path
here in the box
and add the node here
- you are still using 2 colliders. The mesh and the collision box. Don’t. Or adjust both. You’re overcomplicating things. Or don’t even touch the box. We only care about Hongo’s collision.
- looks like the TL offset (80) is not enough (at a glance, at least)
Also:
This makes no sense. We are changing the collision of Hongo, not the cube.
- hongo spawns inside the cube with no collision
- hongo goes to the top → enable hongo’s collision
This Lil’ But Very Copyrighted Dude :
Change his collision.
Yes, but you have to know that Mario can also step on the box.
I think we are close. I put in the championion as a non-collision and it came out of the box and held up with the physics, it shows. but unfortunately it is not progressing
Hongo:
It’s probably because of no controller.
championion
Unrelated, I thought you were saying champion but you’re saying mushroom, right?
yes jaja
brilliant!!! it worked. thank you so much