Uploaded July 2015 | Updated September 2026, 14 minutes ago
In this tutorial we go over aligning the player to the ground or the surface which they are standing on. This will allow the player to climb up slopes more easily if they have a dynamic physics set. This can be used in various contexts and was used for my BGMC 14 entry.
Likes comments and shares are greatly appreciated!
Subscribe for more!
help thread: blenderartists.org/forum/showthread.php?358735-Aligning-the-player-to-the-ground&highlight=
BluePrintRandom's Channel: youtube.com/channel/UC9vHtotZmnu2j5XRZPA-WSg
Script:
#############
import bge
from mathutils import Vector
cont = bge.logic.getCurrentController()
own = cont.owner
Ray = cont.sensors['Ray']
if Ray.positive:
own.alignAxisToVect(Vector(Ray.hitNormal)*1,2,.24)
else:
own.alignAxisToVect(Vector([0,0,1]),2,.25)
#############
Script file: drive.google.com/file/d/0B_DSg35urBhDbGd3Q0FDQ3Y3bk0/view?usp=sharing
Stay Inspired!
In this tutorial we go over aligning the player to the ground or the surface which they are standing on. This will allow the player to climb up slopes more easily if they have a dynamic physics set. This can be used in various contexts and was used for my BGMC 14 entry.
Likes comments and shares are greatly appreciated!
Subscribe for more!
help thread: blenderartists.org/forum/showthread.php?358735-Aligning-the-player-to-the-ground&highlight=
BluePrintRandom's Channel: youtube.com/channel/UC9vHtotZmnu2j5XRZPA-WSg
Script:
#############
import bge
from mathutils import Vector
cont = bge.logic.getCurrentController()
own = cont.owner
Ray = cont.sensors['Ray']
if Ray.positive:
own.alignAxisToVect(Vector(Ray.hitNormal)*1,2,.24)
else:
own.alignAxisToVect(Vector([0,0,1]),2,.25)
#############
Script file: drive.google.com/file/d/0B_DSg35urBhDbGd3Q0FDQ3Y3bk0/view?usp=sharing
Stay Inspired!








![Marble Expedition Devlog 3: Level 1!
In this video I go over devlog 3 in my Marble Expedition game I am developing in the blender game engine.
I go over what will most likely be the first level of the game and show you all the cool things I have added.
This includes: Teleporting, cutscenes, countdown, skydome, restarting, updated menus, new timers and a whole bunch of other stuff.
Leave a like or comment!
Subscribe if you want more!
Thatimst3r
Facebook: https://www.facebook.com/Thatimst3r
Twitter: https://twitter.com/ThaTimst3r
Website: http://www.thatimster.com
Fireshard
Official studio channel:
https://www.youtube.com/channel/UCkEBWrIUES9EDESIojrxxLA
Studio Facebook:
https://www.facebook.com/fireshard
Music: [NCS] Cormak - Flavours
Stay Inspired! Marble Expedition Devlog 3: Level 1!](https://i.ytimg.com/vi/U_RzQLMQat0/mqdefault.jpg)

