Anything to do with physics. Rigid Bodies, Kinematic controllers, vehicles etc.

Change Physics

Change Physics

Postby SpiderMack » 10 Oct 2017, 08:45


I seen this great video

Should it be some option added in the character controller parameters to specify a new capsule height for the crouch position ?

Without a new collision heigh parameter for crouch, in gameplay you will get character blocked in crouch position trying to walk under some bridge or raycast touching player when it is crouched.
User avatar
Skyline Expert
Posts: 441
Joined: 02 Dec 2016, 09:15
Skill: Concept artist
Skill: 3D Modeller
Skill: Level Designer
Skill: Scripter

Re: Change Physics

Postby SolarPortal » 10 Oct 2017, 13:01

Crouch can be achieved by using the
Code: Select all
character.setDimensions(obj, radius, height)
functions which was a very recent addition to recreate the capsule to change the height of the player for crouch, prone etc...
it just hasnt been programmed into any mechanics that come out the box yet.

there is also the
Code: Select all
controller.setDimensions(dccID, radius, height)
if your using a spawned character controller.
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.

Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
Skyline Founder
Skyline Founder
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Return to Physics

Who is online

Users browsing this forum: No registered users and 1 guest