I have a character which can pickup boxes.
These boxes are parented to the character when picked up.
To avoid the boxed to dissapear in walls, I need to change
the shape of the charactercontroller in the script.
The boxes itself are isTrigger=true (isTrigger=false doesn’t make
my character stop from pushing the carried box into walls).
Unfortunately I only see radius, height and center as options for
the CharacterController.
Is it possible to adjust its width, without changing the radius?
This way I can use the charactercontroller to cover both the player
and the box he’s carrying.,
I am now trying to position the charactercontroller in front of the
player using transformDirection, but that can’t be the right way to do it.
It is a third person game where a character can pick up boxes (physics). As soon this happens, the object is ‘changed’ so it doesn’t use the physics engine anymore, just transform.
At this time I need to enlarge the character controllers width. Because the box is now in the ‘hands’ of the player (in front of character) it needs to collide with the world. Using a box collider doesnt work.
So thats why I want to let the character controller’s size to be increased; it will overlap the box the player carries.