Jump to content

Another collisions problem


cassius
 Share

Recommended Posts

I have cleared up most problems I had with collisions but one remains; I have a interior only level. In one room I have a crate and two oildrums. If I push the player gently against the crate it slides along nicely but if I hit a oildrum first and THEN push the crate

It flies around in a crazy manner. Its as though hitting the oildrum first builds up energy. Has anyone else had this problem?

The player bodymass is 12, The crate and oildrum mass is 6.

The following line may be relevant

 

 

UpdateController(player, camrotation.Y, move * 5.0, strafe * 5.0, jump, 500, 8)

 

Thanks.

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

Link to comment
Share on other sites

You might have an old physics file of the oildrum. Make sure you have the physics file from LE 2.3/2.31.

I think playermass should be also 60.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

Just for tests sake .. try simply:

 

UpdateController(player, camrotation.Y, move * 5.0, strafe * 5.0, jump, 500)

 

See if it makes a difference one way or the other.

AMD Bulldozer FX-4 Quad Core 4100 Black Edition

2 x 4GB DDR3 1333Mhz Memory

Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5

Windows 7 Home 64 bit

 

BlitzMax 1.50 • Lua 5.1 MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro

3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET

 

LE 2.5/3.4 • Skyline UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0

 

Marleys Ghost's YouTube Channel Marleys Ghost's Blog

 

"I used to be alive like you .... then I took an arrow to the head"

Link to comment
Share on other sites

UpdateController(player, camrotation.Y, move * 5.0, strafe * 5.0, jump, 500)

 

Changing the player mass to 60 and altering the code to that above has improved things so thanks again.

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...